摘要: 1】div垂直居中:设置line-height:height的高度;vertical-align:middle;(内容不可换行)2】margin加倍:设置了float的div里面再添加一个display:online(浮动ie产生双倍距离的情况也可以这么解决)3】ie中min-无效:添加一句:width:expression(document.body.clientWidth..................6】内层元素发生变化,外层不自动调节大小(2种方法),则1)外层添加border属性2)内层上下各添加一个.divclass{height:0px;overflow:hidden;}7】 阅读全文
posted @ 2013-07-15 15:04 小女子意 阅读(161) 评论(0) 推荐(0) 编辑
摘要: CSSHack分为三类:css类内部hack、选择器hack、html头部引用hack有以下几种写法:1】1)ie6可识别*不可识别!Important2)ie7可识别*可识别!Important3)ff不可识别*可识别!Important区分ffie7ie6(按顺序).test{background-color:red;*background-color:red!important;*background-color:red;}.test{background-color:red;*background-color:red;_background-color:red;}2】(class=“t 阅读全文
posted @ 2013-07-15 14:50 小女子意 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 方法一:html { filter: gray;}或者方法二:html { filter:progidXImageTransform.Microsoft.BasicImage(grayscale=1); }或者(如果有动画:在里面添加) 阅读全文
posted @ 2013-07-15 09:56 小女子意 阅读(143) 评论(0) 推荐(0) 编辑