css

CSS

选中文字样式

1
2
3
4
::selection{
background-color: green;
color: #fff;
}

垂直居中 (兼容IE6)

1
2
3
4
5
6
7
8
9
10
11
12
13
.box{
width: 200px;
height: 300px;
border: 1px solid #ccc;
position: fixed;
left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -150px;
_position: absoulte;
_left: expression(eval(document.documentElement.clientWidth/2+document.document.documentElement.scrollLeft));
_top: expression(eval(document.documentElement.clientHeight/2+document.document.documentElement.scrollTop));
}
---------------
Enjoy it ? Donate me !
欣赏此文?求鼓励,求支持!