1.Identifying the ID Selector:
Implementing the ID Selector
示例代码:
1 <!doctype html><html>
2 <head>
3 <style>
4 p{color: red;}
5 #pname {color: green;font-size=20;font-weight: bold;}</style>
6 </head>
7
8 <body>
9 <p ID="pname">Welcome to BookYourHotel Website.
</p>
10 <p>Hotel booking facility at your doorstep.
</p>
11 </body>
12 </html>
测试结果;
转载于:https://www.cnblogs.com/Catherinezhilin/p/8881962.html