কম্পিউটার টিউটোরিয়াল

CSS :read-only সিলেক্টরের ভূমিকা


রিড-অনলি এলিমেন্ট সিলেক্ট করতে CSS :read-only সিলেক্টর ব্যবহার করুন।

উদাহরণ

নিচের কোড রান করে :read-only সিলেক্টর ইমপ্লিমেন্ট করুন।

<!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 :hover সিলেক্টরের ভূমিকা

  2. CSS :focus সিলেক্টরের ভূমিকা

  3. CSS :nth-last-of-type(n) সিলেক্টরের ভূমিকা

  4. CSS :nth-last-child(n) সিলেক্টরের ভূমিকা