English 中文(简体)
案文dec是否在纽埃尔工作区按纽顿要素开展工作?
原标题:text-decoration doesn t work on a button element in Firefox, workaround?

我只用一种单体的 c子。

<button style="text-decoration:underline">That s a button</button>

Firebug tells me in the computed styles tab that indeed text-decoration is set to underline. However the Button-text is not underlined, why not? Obviously it s an issue with Firefox (3.6), since Chrome and IE both underline the button-text. Is there some css-workaround for Firefox, or do I have to put the button in an outer div with the text-decoration style?

最佳回答

在线研究略微增加,使工作更为棘手,我相信,这可能是一个ug。 这几乎是一种烟ox(实际上不是,而是类似行为)。 如您添加以下内容,请注明:<编码>:绝对,<编码>,> 显示:栏目,<代码>, 显示:栏目-24<>>>,<代码>。 因此:

<button style="text-decoration:underline; display: inline-block;">That s a button</button>
问题回答

这似乎是一种ug笑(我实际上不知道网络标准对<条码>丁顿/条码”要素有何影响,因此我很想宣布它为浏览器解释的缩略语或只是一种区别)。 这项工作虽然有效,但与您的<编码>div并不完全不同。 妥善解决:

<button ><span style="text-decoration:underline">That s a button</span></button>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Private FireFox plugin

I m looking at getting a FireFox plugin developed - but is it possible to create a plugin that is for private use only, so only those I share it with have it and not open to the masses? Need this for ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Cross-browser development

I m developing a web application for a new service, starting from Firefox 3.5. The interface design is tableless, only using divs + CSS & performance-blessed practices. Now, while being ...

Cross browser way of setting IFrame to "about:blank"?

Does anybody know a proper, cross-browser way to "empty" an IFrame? Is "about:blank" recognized without error across all browsers? Is it valid to give an IFrame an empty src?

热门标签