【发布时间】:2010-06-09 16:29:34
【问题描述】:
我正在尝试将一个类应用于以下提交按钮 代码:
<input type="submit" value="Submit" name="commit" class="confirm-button-submit ">
css:
.confirm-button-submit
{
width : 79px;
font : bold 12px sans-serif;;
color : #000;
background : url("../images/confirm-btn.png") 0 -33px no-repeat;
text-decoration : none;
margin-top :0px;
text-align:center;
border:0px;
cursor : pointer;
height:170px;
}
.confirm-button-submit a
{
width : 79px;
font : bold 12px sans-serif;;
color : #000;
background : url("../images/confirm-btn.png") 0 -33px no-repeat;
text-decoration : none;
margin-top :0px;
text-align:center;
border:0px;
cursor : pointer;
height:170px;
}
.confirm-button-submit a:hover
{
width : 79px;
font : bold 12px sans-serif;;
color : #000;
background : url("../images/confirm-btn.png") 0 0 no-repeat;
text-decoration : none;
margin-top :0px;
text-align:center;
border:0px;
cursor : pointer;
height:170px;
}
但它不能正常工作该怎么做
谢谢
【问题讨论】:
-
设置类名后,什么不能正常工作?
标签: html ruby-on-rails css