css id 父类,CSS - 在IE中仅继承父类的子孙

我遇到了Internet Explorer问题。我很想举起手来说我不想支持它,但这不是一种选择。基本上,我写了一个无序列表用于导航。然后在另一节中,使用另一个父节点,我使用了另一个无序列表,但它继承了另一个ID的属性。它在所有其他浏览器中都可以正常工作。我删除了页面的主要部分,并在下面发布它们。另外,我检查了w3c css验证器,并且我得到的警告说“在两种情况下,颜色和背景颜色相同#container和#stripes ul a:link”。CSS - 在IE中仅继承父类的子孙

你会看到,如果你点击项目符号列表,他们会像导航一样。但是,当我尝试更改项目符号列表时,它会影响导航!我尝试设置maincontent中的所有属性,但是它会关闭所有内容。

有人可以检查了这一点,并帮助?这种类型驾驶着我!

2012 Summer Blood Challenge

#stripes ul

{ font-size:13px;

list-style-type:none;

margin:0;

padding:0;

overflow:hidden;

}

#stripes li

{

float:left;

}

#stripes ul a:link,a:visited

{

display:block;

width:128px;

font-weight:bold;

color:#FFFFFF; background-image:url(https://trigger.lwcdirect.com/LWC_00486/uploadImages/2012sbc/redbar.jpg);

background-position: bottom;

text-align:center;

padding:4px;

text-decoration:none;

height:32px;

}

#stripes ul a:hover,a:active

{

background-image:url(https://trigger.lwcdirect.com/LWC_00486/uploadImages/2012sbc/darkredbar.jpg);

}

.roundside {

background-image: url(https://trigger.lwcdirect.com/LWC_00486/uploadImages/2012sbc/goldboxes_02.jpg);

background-repeat: repeat-y;

width: 560px;

text-align: left;

padding: 0 30px 0 30px;

}

.roundside ul {list-style-type: none;

margin: 0;

padding: 0;}

.roundside li {background-image:url(https://trigger.lwcdirect.com/LWC_00486/uploadImages/2012sbc/drop.gif);

background-repeat:no-repeat;

padding:0 0 5px 16px; font-size:16px;}

.roundside ul a:link,a:visited,a:hover,a:active {color:#990000; font-weight:bold}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值