1
我回發到服務器來檢查數據庫,看看我們是否持有參考號碼。如果引用號不存在,我將兩個自定義驗證器設置爲無效並更改ValidationSummary標題文本。問題是我在css類中設置的背景顏色不顯示。字體顏色顯示正確。ValidationSummary風格不在IE 6上顯示Post asp.net
當使用客戶端腳本顯示驗證摘要時,樣式顯示正確。我不知道爲什麼他們不會在有回帖時回覆。
CSS
.form-box .form-error-box {
background: #cd3300 url("../../../images/alert.gif") no-repeat 10px 10px;
color: #ffffff;
font-weight:bold;
padding:10px;
padding-left: 80px;
min-height:55px;
}
代碼
<asp:validationsummary id="vSummary" cssclass="form-error-box" displaymode="BulletList" headertext="An error has occured" runat="server" backcolor="" forecolor="" />
這在Firefox和交IE 8但不IE 6.不幸的是我要支持IE 6
請從查看源添加呈現的代碼以進行驗證總結。 – 2010-11-16 12:04:45