摘要:
div{height:50px;min-height:50px;height:auto !important;}//如果测试有问题,可以将上面的这几个值进行下调换 阅读全文
摘要:
.box{width:1000px;overflow:hidden;margin:o auto;}.divleft{background:url(.../...);width:230px;padding-bottom:10000px;margin-bottom:10000px;overflow:hi... 阅读全文
摘要:
在用百分比布局时经常要用到像素,好像一个border:1px solid red,你不可能写成border:0.1% solid red所以修正他的方法是在这个div上加下面的样式,他会帮你处理像素,你只需要布好你的百分比就可以 box-sizing: border-box; -web... 阅读全文
摘要:
当我们要给一个页面自适应,所有的都要用上百分比的时候,往往给最外面div加百分比时无效,究其原因是它是相对父级的,外层(父级)的元素必须指定height(百分比) 阅读全文