HTML+CSS ID ???? ?? ????
ID ???? ?? ???? ??? ???? ????? ? ?? ??? ???? ????.
??:
# id name {
???
}
???? ??
??? ???? ID ???? ????? ??? ? ????. ?? ??? ??? ?? ????. HTML ? XHTML? ??? ? ID ?? ????? ????? ????? ??? ? ID ?? ????? ??? ?? ?? ???? ???.
?:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ID選擇器</title> <style type="text/css"> #div{ color:green; font-family:隸書(shū); font-size:18px; } </style> </head> <body> <div id="div">中華民族偉大復(fù)興!</div> </body> </html>
id ???? ??? ???? ???? ?????
???? ?? ID ???? HTML ???? ? ?? ?????.
??? ???? ?? ID ??? ???? ??? ?? ??? ???? ???? ID ???? ?? ??? ? ????.
?: <div class ="class1 class2 class2"></div>?, class? ?? ???? ??? ??? ? ????.
Write id = "div1 div2 "?, ??? ??