css2属性整理

width:
height:
background:
.a1:link
.a1:visited
.al:hover
.al:active
background-color:
font-size:
color:
#pp:first-line
#pp:first-letter
target="_blank"  //新窗口打开
p:first-child    //p的第一个子元素。伪类元素
input[type="password"]
background-image: url("1.png");
text-align: center;
1em=100%=16px;1px=0.0625em=6.25%
line-height:
font-family: 
background-repeat:
background-position:center left;
font:
border: 
border-left:
padding:
padding-top:
margin:15px 10px 15px 0px;
margin-top: 
margin-bottom:
float: left;
margin-left:
margin:0px auto;
position: relative; left: 12px;top: 4px;
word-spacing:25px;    //字间距
margin-left: auto;margin-right: auto; //左右居中
position: absolute;
position: absolute;top: 0px;left: 0px;
position: fixed;top: 0px;left: 0px;
overflow: hidden;
word-break:break-all;
border-bottom:
width: 90%;          //设定对象的宽度占父元素100%。
border-radius: 3px;  //几px与width和height有关(圆角矩形)
border-radius: 50%; //50%几乎已经是最大值了(椭圆形)
cursor: pointer;
padding: 0px 6px;    //上下padding 0px,左右padding 6px。
margin:50px 100px  20px 10px;   //上左下右
vertical-align: middle;  //text-top;text-bottom;文字图片上下位置
text-indent:2em;       // 首行文本缩进32px;
font-style: oblique;   //Italic是指斜体字,而Oblique是倾斜的文字,对于没有斜体的字体应该使用Oblique属性值来实现倾斜的文字效果。
text-decoration:underline; 
white-space: pre;      //(pre/nomal) 输入空格能直接显示
display:block;       //inline,inline-block,none
div:nth-child(2n+1)   //div的第奇数个儿子
div:nth-child(1)       //div的第1个儿子
div:nth-child(2n)        //div的第偶数个儿子
z-index: 10;             //重叠顺序,10在11,20下面
clear:left;
border-width:10px; 
blockquote:before     //before伪元素选择器
content: open-quote;  //可以用"***"代替open-quote来加内容
blockquote:after
content: close-quote;
.div1:hover .div3     //div3必须嵌套在div1里
font-family: "幼圆",Arial;
list-style: none;
outline: none;         //取消input的边框
maxlength="50";
opacity:0.4;           //不透明度
rgba(12,12,12,0.5) ;  //a为不透明度











评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值