摘要: 原文地址:http://adamghost.com/2009/03/ie-has-layout-and-bugs-zh/找们那知道浏览器有bug,而且Windows上的lE的bug 似乎比太多数浏览器都多。IE/Win的衣现与其他浏览器不同的原因之一是,显示引擎使用一个称为布局(layout)的内部概念。因为布均是一个专门针对显示引擎内部工作方式的概念,所以一般悄况下不需要了解它。但是,布局问题是许多IE/Win显示bug的根源,所以理解这个概念以及它如何影响CSS是有捂助的。什么是布局Windows 上的IE 使用布局概念来控制元素的尺寸和定位。那些称为拥有布局(have layout)的元 阅读全文
posted @ 2012-10-07 22:45 游不停的鱼 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://adamghost.com/2008/12/ie-haslayout-%E8%AF%A6%E8%A7%A3/拥有layout概述Internet Explorer 中有很多奇怪的渲染问题可以通过赋予其”layout”得到解决。John Gallant 和 Holly Bergevin 把这些问题归类为”尺寸臭虫(dimensional bugs)”[32],意思是这些臭虫可以通过赋予相应元素某个宽度或高度解决。“Layout”是一个 Internet Explorer for Windows的私有概念,它决定了一个元素如何显示以及约束其包含的内容、如何与其他元素交互和建 阅读全文
posted @ 2012-10-07 22:42 游不停的鱼 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 一、问题如下所示: 1 <style type="text/css"> 2 3 ul{ width:400px; 4 margin:100px 200px;} 5 li{ list-style:none;} 6 li a{ display:block; 7 background:#000; 8 color:#fff; 9 text-decoration:none;}10 li a:hover{ background: #990000;} 11 12 13 </style>14 15 16 17 <ul>... 阅读全文
posted @ 2012-10-07 22:28 游不停的鱼 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 在ie6中,关于css定位样式有一个bug,具体表现为(如下所示):ul{ width:150px; margin:100px auto; border:#000 1px solid; padding-bottom:20px;} li{ list-style:none; padding:15px; border-bottom:#000 1px solid; position:relative;} li a{ display:block; width:30px; height:30px; background... 阅读全文
posted @ 2012-10-07 22:15 游不停的鱼 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 <div class="container">2 <div class="block1">子元素1</div>3 <div class="block2">子元素2</div>4 </div>.block1{ width:200px; height:200px; background: #CBA627; float:left; margin-right:10px;}.block2{ width:200px; height:100px; backgroun... 阅读全文
posted @ 2012-10-07 21:36 游不停的鱼 阅读(285) 评论(0) 推荐(0) 编辑