几个常见的Css样式的写法(有待补充)

常规的Css样式的写法:
	.box{ width: 100%; height: 100%; display: table-cell; vertical-align: middle; text-align: center;}
	.box img{ vertical-align: middle;}
	.center{ vertical-align: middle; text-align: center;}

#后面对应着id的名称:
	#imglist{ list-style:none; overflow:hidden; position:relative; padding:0; width:100%; height:100%; vertical-align: middle;}
	#imglist li{position:absolute; width:100%; left:0px; height:100%; vertical-align:middle; text-align:center; float:left;}
	#imglist li img{vertical-align:middle; text-align:center; margin:auto;}

内嵌图片的Css样式:
	#btnLeft{background:transparent url('/images/pic5.png') no-repeat 0 180px;left:0px;}
	#btnRight{background:transparent url('/images/pic6.png') no-repeat 0 180px;right:0px;}

Div结合Style的写法:


你可能感兴趣的:(CSS)