【发布时间】:2011-02-02 22:06:42
【问题描述】:
我在 IE8 中设置提交和取消按钮的样式时遇到问题。
使用:
.editableTable button[type="submit"]
{
background:url("../images/Ok-icon.png") no-repeat 0 0;
border:none;
}
和
.editableTable button[type="cancel"],.editableTable button[type="button"]
{
background:url("../images/Close-icon.png") no-repeat 0 0;
border:none;
}
我在 FF 和 IE7 中得到了我想要的,但在 IE8 中,按钮类型在确定和取消按钮上都是提交,所以我在两个按钮上都得到了确定图标。我的另一个选择是 button:nth-child() 但这在 IE 中不起作用。所以我被困住了,真的很感激任何指点......
谢谢!
问候斯文
【问题讨论】:
-
我把你的问题读成“Jedi Table”:)
-
愿原力与你同在... :)
标签: css internet-explorer button jeditable