Background作为css属性一成员同样是有背景意思,并且是设置背景图片、背景颜色、背景图片截取等样式。首先先来看看background有那些值(可进入CSS手册的background详细了解)可以按顺序设置如下属性(可点击进入相应的css手册查看使用):background-color背景颜色background-image背景图片background-repeat背景...
1、IE6支持max-width解决方法IE6支持最大宽度,解决CSS代码:.className{max-width:1000px;_width:expression((document.documentElement.clientWidth||document.body.clientWidth)<1000?"1000px":"");over...
滑动门真正的魅力之圆角自适应按钮样式代码如下:/*btn*/.btn{height:25px;background:url(bg.png)righttopno-repeat;float:left;padding-right:10px;text-decoration:none;margin:03px;}.btnspan{line-height:23px;height:...
滑动门真正的魅力之导航/tab选项卡样式代码如下:#nav{width:950px;background:url(navbg.png)lefttoprepeat-x;height:34px;}#navul{background:url(navbg.png)righttopno-repeat;height:34px;line-height:34px;padding-l...
1.<br>、<hr>尽量少用,性能很差、对于<hr>可以使用border来代替。2.div中内容到边框没有值,显得很紧凑,设置padding后会把div撑开。解决办法:在子容器设置padding;设置padding-left,padding-right值.即可解决:3.overflow内容溢出时的设置overflow-x水平方向内容溢出时的设置overflow-y垂直方向...