কম্পিউটার

জাভাস্ক্রিপ্ট দিয়ে কলামের মধ্যে নিয়মের শৈলী কিভাবে সেট করবেন?


columnRuleStyle ব্যবহার করুন৷ নিয়মের শৈলী সেট করার জন্য সম্পত্তি। জাভাস্ক্রিপ্ট -

সহ কলামগুলির মধ্যে নিয়মের শৈলী সেট করতে আপনি নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেন

উদাহরণ

<!DOCTYPE html>
<html>
   <head>
      <style>
         #myID {
            column-count: 4;
            column-rule: 4px dotted yellow;
         }
      </style>
   </head>
   <body>
      <p>Click below to change style</p>
      <button onclick="display()">Change Style between 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.columnRuleStyle = "inset";
         }
      </script>
   </body>
</html>

  1. জাভাস্ক্রিপ্টের সাথে একটি পাঠ্যের অক্ষরের মধ্যে স্থান কীভাবে সেট করবেন?

  2. CSS দিয়ে কলামের মধ্যে নিয়মের রঙ সেট করুন

  3. CSS দিয়ে কলামের মধ্যে নিয়মের প্রস্থ সেট করুন

  4. CSS দিয়ে কলামের মধ্যে নিয়মের স্টাইল সেট করুন