首页 > Web开发 > 详细

CSS3的状态伪类选择器

时间:2017-02-06 23:47:59      阅读:200      评论:0      收藏:0      [点我收藏+]

技术分享

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>CSS3的状态伪类选择器</title>
 6     <style type="text/css">
 7         :enabled{
 8             background-color: blue;
 9         };
10         :disabled{
11             background-color: yellow;
12         };
13         :checked{
14             background: blue;
15             width: 100px;
16         };
17     </style>
18     <script type="text/javascript"></script>
19 </head>
20 <body>
21     <input type="text" value="tom"><br>
22     <input type="text" value="北京" disabled><br>
23     篮球<input type="checkbox" checked value="篮球"><br>
24     足球<input type="checkbox" value="足球"><br>
25 </body>
26 </html>

 

CSS3的状态伪类选择器

原文:http://www.cnblogs.com/qianjilou/p/6372021.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!