html – 如何在提交按钮中设置文本颜色?
发布时间:2020-12-14 21:40:32 所属栏目:资源 来源:网络整理
导读:我尝试改变提交按钮类型的文本颜色,但我不知道为什么我无法改变它 htmlheadstyle type="text/css".button{ width:105px; height: 20px; background-image:url('tiny.gif'); line-height: 20px; padding-bottom: 2px; vertical-align: middle; font-family:
我尝试改变提交按钮类型的文本颜色,但我不知道为什么我无法改变它
<html> <head> <style type="text/css"> .button { width:105px; height: 20px; background-image:url('tiny.gif'); line-height: 20px; padding-bottom: 2px; vertical-align: middle; font-family: "Lucida Grande",Geneva,Verdana,Arial,Helvetica,sans-serif; font-size: 13px; <!--font-weight: bold;--> text-transform: none; border:1px solid transparent; } .button:hover { background-image:url('tiny_.gif'); } </style> </head> <body> <input type="submit" value="Fetch" class="button"/> </body> </html> 当我尝试更改提交按钮的颜色时,我遇到问题。 解决方法.button { color: green; } jsFiddle Live Demo (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |