css文本装饰下划线应用于输入按钮的文本时不工作 [英] css text-decoration underline not working when applied to the text of an input button

查看:266
本文介绍了css文本装饰下划线应用于输入按钮的文本时不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很自我解释。我有一个输入按钮。它有文本。它有一个css类。 css类具有属性text-decoration:underline;。 下划线不会显示在firefox 中。我试图添加!重要的属性,但没有效果。显然这是一个已知的问题。任何人都知道解决方法?

Pretty self explanatory. I have an input button. It has text. It has a css class. The css class has the attribute "text-decoration:underline;". The underline does not show up in firefox. I tried adding "!important" to the attribute but to no avail. Apparently this is a known issue. Anyone know a workaround?

推荐答案

应用 position:absolute display:block float:left 。 ( display:block 建议。)不要问为什么。

Apply position: absolute, display: block, or float: left to the button. (display: block recommended.) Don't ask why.

怪异模式中加下划线。

这篇关于css文本装饰下划线应用于输入按钮的文本时不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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