কম্পিউটার

CSS-এর ভূমিকা:শুধুমাত্র পাঠযোগ্য নির্বাচক


শুধুমাত্র পঠনযোগ্য উপাদান নির্বাচন করতে CSS :পঠন-অনলি নির্বাচক ব্যবহার করুন।

উদাহরণ

আপনি :-পাঠ্য নির্বাচনকারী:

বাস্তবায়ন করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন
<!DOCTYPE html>
<html>
   <head>
      <style>
         input:read-only {
            background-color: blue;
            color: white;
         }
      </style>
   </head>
   <body>
      <form>
         Subject: <input type = "text" name = "subject" value = "Maths"><br>
         Student: <input type = "text" name = "student" readonly value = "Amit"><br>
      </form>
   </body>
</html>

  1. CSS এর ভূমিকা:হোভার সিলেক্টর

  2. CSS এর ভূমিকা:ফোকাস নির্বাচক

  3. CSS-এর ভূমিকা :nth-last-of-type(n) নির্বাচক

  4. CSS এর ভূমিকা :nth-last-child(n) নির্বাচক