开发者

Arbitrary Substring Attribute Value Selector not working in IE7

开发者 https://www.devze.com 2023-03-10 06:54 出处:网络
I have a Tag cloud that i need to style. Unfortunately it has no classes and I cannot edit the code.

I have a Tag cloud that i need to style. Unfortunately it has no classes and I cannot edit the code.

The Problem: I'm using the following code:

.tag-cloud a[style*="xx-large"]{
font-size:140% !important;
}

To target:

<div class开发者_运维问答="tag-cloud">
<a href="" style="font-size:xx-large;">Events</a>
</div>

the doctype is:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

This is not working in Internet Explorer 7. As far as i know it is meant to work.

UPDATE:

The CMS i'm using is commenting out the doctype in ie7. This appears to be the issue. Not the CSS. Thanks.


If you're not against using javascript, this could be solved really easily using jQuery:

$(function() {
   $(".tag-cloud a[style='font-size:xx-large']").css("font-size", "140%");
});
0

精彩评论

暂无评论...
验证码 换一张
取 消