设置 | 登录 | 注册

作者共发了6篇帖子。

ie下沒有高度的ulli組

1楼 过去的记忆02 2010-12-4 10:46
.x3 {
 list-style-type: none;
 margin: 0px;
 padding: 0px;
}
.x3 li.a {
 background-color: #0099FF;
 height: 20px;
 width: 100px;
}
.x3 li.b {
 background-color: #FF9900;
 height: 20px;
 width: 100px;
}
2楼 过去的记忆02 2010-12-4 10:46
<ul class="x3">
  <li class="a"></li>
  <li class="b"></li>
</ul>
3楼 过去的记忆02 2010-12-4 10:49

下面這個是有高度的:

.xf {
 margin: 0px;
 padding: 0px;
 list-style-type: none;
}
.xf li.a {
 background-color: #FFCCCC;
 height: 10px;
 width: 50px;
}
.xf li.b {
 background-color: #FF33CC;
 height: 10px;
 width: 50px;
}

4楼 过去的记忆02 2010-12-4 10:49
<ul class="xf">
  <li class="a"></li>
  <li class="b"></li>
</ul>
5楼 过去的记忆02 2010-12-4 10:50
歸納:若第一個li標籤的高度小於20,那麼ie瀏覽器下兩個li塊就有高度。
6楼 过去的记忆02 2010-12-4 10:54
真是太詭異了,吧上面的代碼保存為新的html文件,居然沒有高度。而應用到list.php中,第二個ul居然有高度。

内容转换:

回复帖子
内容:
用户名: 您目前是匿名发表。
验证码:
看不清?换一张
©2010-2025 Purasbar Ver3.0 [手机版] [桌面版]
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。