上标在IE中下划线 [英] Superscript underline in IE

查看:228
本文介绍了上标在IE中下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要简短,因为我的时间不够,所以如果这不是我想要的那么详细,我道歉。

I'm going to be brief because I'm short on time, so I apologize if this isn't as detailed as I'd like it to be.

我有一些代码:

print("<a href='#'>Some text<sup>&reg;</sup> some more text</a>");

在FF中,这个工作原理就像我想的,链接作为一个整体用下划线。但在IE中,除了在®它看起来像一个连字符上面的符号,是相当可笑的看。

In FF, this works like I would like, the link as a whole is underlined. However in IE, the link is underlined except under the ® where it looks like a symbol above a hyphen and is rather ridiculous looking.

我尝试过在Google上发现的几个建议,但是没有一个建议对达到预期的效果非常有帮助。不幸的是,在底部添加边框不是一个选择。到目前为止,最好的解决方案是完全打破下划线完全在CSS标签,仍然使它工作正常在FF,而仍然看起来不太蠢的IE。

I've tried several suggestions I found on Google, but none of them are very helpful in achieving the desired effect. Adding a border to the bottom is not an option unfortunately. So far the best solution is to break the underline completely at the sup tag with CSS which still leaves it working fine in FF while still looking less silly in IE.

如果任何人可以帮助这个,这将是最感激,我宁愿不通过网站删除< sup> 标签,因为我被告知,我将不得不做我不解决这个困境。

If anyone could help with this it would be most appreciated, I'd rather not go through the site removing <sup> tags as I've been told I will have to do should I not solve this dilemma.

更新:使用sup {text-decoration:none}解决方案,它现在就可以了。有注册标记无处不在,所以整个网站将不得不被更新,这是更麻烦,我们都决定值得。感谢那些回覆者。

UPDATE: Went with the sup {"text-decoration:none" } solution, it'll do for now. There are reg marks everywhere, so the whole site would've had to have been updated, which was more trouble than it was worth we all decided. Thanks to those who replied.

推荐答案

< sup> 标记

我更喜欢用css:

<span style='font-size:75%;vertical-align:super;text-decoration:none'>&reg</span>

如果可以设置.reg类:

If you can set up a .reg class:

.reg {
    font-size:75%;
    vertical-align:super;
    text-decoration:none
}

For:

<span class='reg'>&reg;</span>

这篇关于上标在IE中下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆