我不知道如何說話,但基本上當在IE9中,標準和瀏覽器模式設置爲IE9時,我的按鈕樣式無法正確呈現。在IE10兼容性方面,它們與IE9標準和瀏覽器模式看起來不錯,所以在IE10中測試時不會顯示這個錯誤。在鉻中它也可以完美地工作。這裏是我的按鈕輸入代碼和.css以及一個顯示按鈕渲染的小提琴。我附上了Chrome中呈現的按鈕的屏幕截圖(這是正確的),以便您可以看到它應該是什麼樣子,我只是不確定解決方法,並希望有人能夠提供幫助。IE9的CSS輸入按鈕不起作用
.button_standard,
.CommandButton,
.CommandButtonNoWidth,
.CommandButtonWorkflow,
.CommandButtonWorkflowNotify
{
border-top: #F4E6CC 2px solid;
border-right: #BFB087 2px solid;
border-bottom: #ABA476 2px solid;
border-left: #F5DFBA 2px solid;
padding: 0;
font-weight: bold;
font-size: 8pt;
margin: 0;
color: #666666;
background-color: #F3D29D;
text-decoartion: none;
cursor:pointer;
}
<input type="submit" name="ucDocSearchForm$btnSearch" value="Search" onclick="return validateDates();" id="ucDocSearchForm_btnSearch" class="CommandButtonNoWidth" name="btnSearch" onMouseOver="this.src='/applications/images/search_over_clink.gif'" onMouseOut="this.src='/applications/images/search_on_clink.gif'" style="font-weight:bold;width:65px" />
大寫字母殺死我的眼睛 –
這就是它是如何寫在我工作的樣式表中的,我沒有自己寫過,但是我會爲您編輯帖子,感謝您提供非常豐富的評論 –