2011-02-02 106 views
0

我在设计IE8中的提交和取消按钮时遇到了问题。
使用:Jeditable按钮造型问题

.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按钮类型为提交两个确定和取消按钮,这样我就得到了确定图标两个按钮。我的其他选项是按钮:nth-​​child()但在IE中不起作用。所以我卡住了,真的很欣赏任何指针...

谢谢!

问候斯文

+1

我读作 “绝地表” 你的问题:) – Dutchie432 2011-02-02 22:09:18

+0

愿力量与你同在... :) – Zwempha 2011-02-02 22:20:36

回答

0

您可能忽略一个Doctype声明。尝试在<html>开始之前在页面顶部添加<!doctype html>,看看会发生什么。 IE浏览器有时不理解type="submit",但理解type="Submit",反之亦然。试试这些。

除此之外,在SO上也有几次类似的问题。

其中之一就是在这里 Css attribute selector for input type="button" not working on IE7

--edit

哦。在IE8中也发现了关于选择器问题的这个问题。 Attribute selectors, JavaScript and IE8