html – 如何在提交按钮中设置文本颜色?

我尝试改变提交按钮类型的文本颜色,但我不知道为什么我无法改变它
<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

相关文章

vue阻止冒泡事件 阻止点击事件的执行 &lt;div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些