摘要:
用Div+CSS进行网站布局时,做一些浮动层等特殊特殊效果时要考虑到定位问题。这就要用到Position属性等。Position属性有四个值:static、fixed、absolute和relative, overflow:hidden;的设置会影响z-index失效 后面两个在布局中的定位里是经常 阅读全文
posted @ 2017-12-05 15:32
Microtiger
阅读(215)
评论(0)
推荐(0)
摘要:
无标题文档 不设置height,加上overflow:hidden; 层就自动适应高度 不设置height,加上overflow:hidden; 层就自动适应高度 阅读全文
posted @ 2017-12-05 15:29
Microtiger
阅读(153)
评论(0)
推荐(0)
摘要:
css兼容text-align:left!important; height:32px!important;line-height:32px!important;*width:278px; *margin-top:2px;color:#666!important;border:none; *bord 阅读全文
posted @ 2017-12-05 15:28
Microtiger
阅读(161)
评论(0)
推荐(0)
摘要:
.ppzx{ margin-top:30px;} .ppzx .left{ width:253px; float:left;} .ppzx .right{ width:700px; line-height:38px; color:#1e5836; padding-left:50px; float:left; background:url(home_23.jpg); height:40px;;} ... 阅读全文
posted @ 2017-12-05 15:27
Microtiger
阅读(324)
评论(0)
推荐(0)
摘要:
在html+css布局里ul>li挺常用的,在群里(WEB前端开发 458732443)总有新手问怎么解决li的最后一个margin值的问题。下面介绍一下,大神请不要拍砖。先看两个demo,你可以先运行,改变box的宽度看一下。1、运用css3的nth-child(3n) 2、运用margin负值 阅读全文
posted @ 2017-12-05 15:19
Microtiger
阅读(2275)
评论(0)
推荐(0)

浙公网安备 33010602011771号