IE6下的Div+css 二级菜单问题 - Web 开发 / HTML(CSS)
在IE6下如果“.lmenu ul li a:hover {color:#000; background:#123234;}”如果这个是能正常显示,但背景改成图片的如:“.lmenu ul li a:hover {color:#000; background:url(images/1_23.jpg);}”二级菜单就不能显示,这个是为什么?
代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Index</title>
<style type="text/css">
*{margin:0;padding:0;}
body {margin:0px;}
body,td,th {font-size:13px; color:#2D2D2D;}
.lmenu {width:203px; position:relative; margin:0px; padding:0px;}
.lmenu ul {list-style-type:none;}
.lmenu ul li {float:left;position:relative;}
.lmenu ul li ul {display:none;}
.lmenu ul li a, .lmenu ul li a:visited
{
display:block; float:left; width:168px; line-height:34px;
font-size:12px;color:#000;text-decoration:none; text-align:left;
padding:0 0 0 35px; background:url(images/1_23.jpg); overflow:hidden;
}
.lmenu ul li:hover ul {display:block; position:absolute; left:203px; top:0px;}
.lmenu ul li:hover ul li {background:url(images/1_23.jpg);}
.lmenu ul li:hover ul li a {color:#000; padding:0 0 0 35px;}
.lmenu ul li:hover ul l
相关问答:
我用object标签载入一个外部的html文件可是用vs2008打开却不显示,显示红叉,请问是怎么回事?
用iframe载入。
可以用iframe载入
用iframe载入超链接地址不改变,没办法跳转页面
引用
用iframe载入超链接地址 ......
<span id="Label1">如果能看到这个标签 说明我们已经能从HTML 页面上获取了这个元素控件传递到Silverlight应用程序中 </span>
<br />
<input type="sub ......
各位大哥大街们,我想把HTML转换成PDF,使用的是FOP,但是报错:
java.lang.ClassCastException: org.apache.fop.layout.BlockArea cannot be cast to org.apache.fop.layout.AreaContainer
at com.test.Html2Pdf ......
一个gridview 中有若干条数据,(没有有分页)下面这个放到别的*.css中总是报错。 哪位好心人知道一个完整的控制表头冻结的css 。。
.FixedTitleRow
{
positio ......
.css1 .css2 #objid {OVERFLOW: scroll;...}
.css1 .css3 {...}
把具有共同样式的写到一起了 好维护
中间无逗号,属于样式嵌套
样式的共同的地方写在一起,可以省掉不必要的代码行~
这个就是代码 ......