html - CSS 和按钮的问题

标签 html css

我有 CSS

div.myButton input a {
display:block;
height: 24px;
width: 43px;
padding:10px 10px 10px 7px;
font: bold 13px sans-serif;;
color:#333;
background: url("hover.png") 0 0 no-repeat;
text-decoration: none;
}
myButton a:hover {  
background-position: 0 -44px;
color: #049;
}
myButton a:active {
background-position: 0 -88px;
color:#fff;
}

然后我有 HTML

<div class="myButton"><INPUT type="submit" name="" value=""></div>

我不知道哪里出错了,但我无法查看图像!!

有什么帮助吗?

谢谢

最佳答案

改变

div.myButton input a 

div.myButton input 

和另外 2 个

div.myButton input:hover

div.myButton input:active

http://www.jsfiddle.net/EpyGn/1/

关于html - CSS 和按钮的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4374380/

相关文章:

CSS - 如何从 div 溢出到屏幕的全宽

html - 当水平和垂直滚动条可用时修复表格标题

html - 如何在 Bootstrap 4 仪表板模板中向搜索栏添加功能

php - 返回全文搜索结果

jquery - 我怎样才能得到 "view more"div 标签链接到不同的链接一个 Jquery 调出菜单链接

html - css 边距和填充新手问题

html - CSS 将包装器对齐到屏幕的顶部和底部

javascript - jquery-ui可排序取消

html - 完成定位,需要纯CSS方案

html - 如何垂直对齐我的 <li> 元素,以便文本位于导航栏的中间(垂直而言)?