<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> div.clazz { height: 100px; width: 100px; background-color: gray; } div#clazz { height: 100px; width: 100px; background-color: blue; } div[test] { height: 100px; width: 100px; background-color: red; } </style> </head> <body> <div class="clazz"></div> <div id="clazz"></div> <div test="test1"></div> </body> </html>
css属性选择器
猜你喜欢
转载自ruanqiangbeyond201208043532.iteye.com/blog/2351319
今日推荐
周排行