开发者

IE7 acronym underline in a fieldset legend

开发者 https://www.devze.com 2023-02-06 11:41 出处:网络
I have an acronym inside of a fieldset/legend: <fieldset> <legend> <acronym>foo</acronym>

I have an acronym inside of a fieldset/legend:

<fieldset>
    <legend>
        <acronym>foo</acronym>
    </legend>
</fieldset>

In Firefox this gets rendered with a dotted underline to signal the user that there is something there if they mouseover it.

In IE the dotted un开发者_JAVA百科derline doesn't show up?

I tried forcing it in css like this:

style="border-bottom:1px dotted #000000 !important;"

But I can't seem to get it to show up. Any ideas?


Set the acronym's display style to inline-block That will let IE7 show the border you specify in the style.

0

精彩评论

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

关注公众号