কম্পিউটার

কিভাবে জাভাস্ক্রিপ্ট দিয়ে কলাম পূরণ করবেন?


কলাম পূরণ ব্যবহার করুন৷ কলাম পূরণের সম্পত্তি। এটিকে ক্রমানুসারে পূরণ করতে স্বয়ংক্রিয়ভাবে পূরণ করুন, অথবা কলামের মধ্যে সামগ্রীকে সমানভাবে ভাগ করার জন্য ভারসাম্য রাখুন।

উদাহরণ

আপনি জাভাস্ক্রিপ্টের সাথে ফিল কলাম সেট করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন -

<!DOCTYPE html>
<html>
   <body>
      <p>Click below to create 4 columns</p>
      <button onclick="display()">Columns</button>
      <div id="myID">
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
      </div>
      <script>
         function display() {
            document.getElementById("myID").style.columnCount = "4";
            document.getElementById("myID").style.columnFill = "balance";
         }
      </script>
   </body>
</html>

  1. জাভাস্ক্রিপ্টের সাথে একটি উপাদানের অনুভূমিক প্রান্তিককরণ কিভাবে সেট করবেন?

  2. কিভাবে জাভাস্ক্রিপ্ট দিয়ে ক্লিপবোর্ডে টেক্সট কপি করবেন?

  3. কিভাবে জাভাস্ক্রিপ্ট দিয়ে টেক্সট টগল করবেন?

  4. কিভাবে CSS দিয়ে কলাম পূরণ করবেন