解决IE6 IE7绝对定位弹层被后面的元素遮住? 弹层边框一直被后面的元素边框遮住,试了n种方法,只有这个比较好用. <div class="tuijian-table"> <ul> <li class="first"> <span class="thead">4月(将雨最少)</span> <p class="tbody"> <span class…
relative 上加上z-index有多个,则z-index递减, absolute层显示则不会被其它标签挡住.…
对从事web开发的朋友来讲,低版本的IE永远是一个痛点,不支持最新技术(如css3,html5). 在现在web开发中使用图标字体已经很广泛,如Font Awesome,Bootstrap等,字体图片主要是通过css选择器before,after结合content来实现,但是在低版本的IE6/IE7/IE8中并不支持,下面就来探讨一下如何解决IE6/IE7/IE8不支持before,after问题. 先来看一个例子 这里重点演示IE6中效果,因为只要IE6实现的效果,更高版本的IE一般都可以实现…
解决IE6,IE7下子元素使用position:relative.父元素使用overflow:auto后,子元素不随着滚动条滚动的问题   在IE6,IE7下,子元素使用position:relative.父元素使用overflow:auto后,我们预期的是滚动条滚动时,子元素也随着滚动,实际情况是内容不滚动,就感觉你是定位定在那里了.   解决办法是父元素添加position:relative样式…
一句white-space:nowrap解决IE6,IE7下浮动元素不自动换行…
令人蛋疼的IE,IE6/IE7下父元素有相对/绝对定位时,子元素在IE6和IE7下overflow:hidden;失效. 情况一:(在parent上增加position:relative) <style type="text/css"> .parent{ width:100px; height:100px;border:1px solid #f00; overflow:hidden; position:relative;} .sonF{ position:relative;…
在项目中引入json2.js 官方http://www.json.org/ 源码地址:https://github.com/douglascrockford/JSON-js $.ajax({ url: '/LicXXse/Add', contentType: "application/json; charset=utf-8", type: 'POST', data: JSON.stringify(PostData),//还是这样写即可 async: true, success: fun…
.clearfix:before, .clearfix:after { content: "."; display: block; height: ; overflow: hidden; } .clearfix:after { clear: both; } .clearfix { zoom: ; /* IE < 8 */ } 来源:http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php…
A floated box is shifted to the left or right until its outer edge touches the containing block edge or the outer edge of another float. If there's a line box, the top of the floated box is aligned with the top of the current line box.  由上面的描述可以得到以下结…
RM8005: IE6 IE7 IE8(Q) 中行内元素后相邻的浮动元素在某些情况下会折行放置在之前行内元素所在行框的底部 标准参考 W3C CSS 2.1 规范文档里对于浮动元素与非浮动行内元素相邻时的情况有如下解释.以下是关键段落: A floated box is shifted to the left or right until its outer edge touches the containing block edge or the outer edge of another f…