কম্পিউটার

জাভাস্ক্রিপ্টের সাথে একটি উপাদানকে ভাগ করা উচিত এমন কলামের সংখ্যা কীভাবে সেট বা ফেরত দেওয়া যায়?


একটি ডিভকে তিনটি কলামে ভাগ করতে, columnCount ব্যবহার করুন সম্পত্তি কলাম গণনা সেট করুন এবং ডিভ ভাগ করুন।

উদাহরণ

আপনি জাভাস্ক্রিপ্ট -

এর সাথে একটি উপাদানকে ভাগ করতে হবে এমন কলামের সংখ্যা ফেরত দেওয়ার জন্য নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেন

<!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";
         }
      </script>
   </body>
</html>

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

  2. জাভাস্ক্রিপ্ট দিয়ে একটি উপাদানের মার্জিন কিভাবে সেট করবেন?

  3. একটি উপাদানকে CSS দিয়ে ভাগ করা উচিত কলামের সংখ্যা কীভাবে নির্দিষ্ট করবেন

  4. CSS এর সাথে একটি উপাদান কতটি কলাম জুড়ে থাকা উচিত তা সেট করুন