CSS # idตัวเลือก
ตัวอย่าง
จัดรูปแบบองค์ประกอบด้วย id="firstname":
#firstname
{
background-color: yellow;
}
ความหมายและการใช้งาน
ตัวเลือกกำหนดรูปแบบองค์ประกอบด้วยรหัสที่ระบุ#id
รุ่น: | CSS1 |
---|
รองรับเบราว์เซอร์
Selector | |||||
---|---|---|---|---|---|
#id | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์ CSS
#id {
css declarations;
}