码迷,mamicode.com
首页 > Web开发 > 详细

css,查询相应标签,div等

时间:2017-07-22 16:45:40      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:comment   footer   bsp   lin   margin   查找   floor   round   tab   

1、类名

.类别

例子:

查询类名为“useradd”

.useradd{
margin-top:50px;
margin-left:200px;
}

2、属性找

例子:查询类为useradd下的input,属性为“text”。

.useradd input[type=text]{
width:400px;
}

 

3、标签查找

例子:查找到类名为“floorFooter2left ”下的标签“ul”下的“li”下的“a”标签

.floorFooter2left ul li a{
line-height:30px;
color:#000;
}

 

4、标签方法

.floorFooter2left ul li a:hover{
color:#888;
}

 

5、标签查询

table tr{
height:30px;
}

6、父子类查询

.floorFooter2 .comment .right{
float:right;
background:#fff;
width:1183px;
height:100px;
padding-left:15px;
}

 

7、di

#id1{

width:1183px;

}

css,查询相应标签,div等

标签:comment   footer   bsp   lin   margin   查找   floor   round   tab   

原文地址:http://www.cnblogs.com/michellexiaoqi/p/7221433.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!