কম্পিউটার

CSS এর ভূমিকা:সক্রিয় নির্বাচক


প্রতিটি সক্রিয় <ইনপুট> উপাদান স্টাইল করতে CSS :enabled নির্বাচক ব্যবহার করুন। আপনি :সক্ষম নির্বাচক -

বাস্তবায়ন করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন

উদাহরণ

<!DOCTYPE html>
<html>
   <head>
      <style>
         input:enabled {
            background: blue;
         }
      </style>
   </head>
   <body>
      <form action = "">
         Subject <input type = "text" name = "subject"><br>
         Student: <input type = "text" name = "student"><br>
         Age: <input type = "number" name = "age" disabled><br>
      </form>
   </body>
</html>

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

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

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

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