0
我正在使用外部stylesheet
爲我的default.aspx
頁面樣式,我正在使用母版頁在我的項目中。我指stylesheet
在master
頁面。 我的問題是,我有我的許多form
和dropdowns
textboxes
,我同時使用classes
和id's
每個control.When我使用class
在stylesheet
改變一個特定的控制都體現,,但是當我用身份證styling
,變化沒有反映出來。控制仍然保持原樣。這肯定是明顯的,我可能會失蹤。我正在使用'。'。和'#'分別爲class
和id
.Any幫助非常感謝。 這裏是我的default.css
文件CSS樣式表不反映更改
.textbox ,.dropdown,.checkdate1,.checkdate2,.NumZero,.NumLenZero,.NumDecTwo {
margin-bottom:10px;
}
.textbox,.checkdate1,.checkdate2,.NumZero,.NumLenZero,.NumDecTwo {
border:1px solid gray;
}
#disabled {
width:1000px;
margin-left:auto;
margin-right:auto;
color:White;
background-color:red;
text-align:center;
border:1px solid gray;
}
#drpCustType,#drpGender,#drpCountry,#drpMaritalStatus,#drpCorrespAdd,#drpEducation,#drpOccupation {
width:130px;
}
#drpResCity,#drpOffCity,#drpNativeCity {
width:160px;
}
#drpInitial,#drpReligion {
width:100px;
}
#drpBranchName,#drpResState,#drpOffState,#drpNativeState {
width:200px;
}
#drpIdentification {
width:220px;
}
#drpAddressProof {
width:253px;
}
#txtResAdd,#txtOffAdd,#txtNativeAdd {
width:350px;
border:1px solid red;
}
#txtCustNo {
margin-left:2px;
}
#txtBirthDate {
margin-left:8px;
}
#drpIdentification {
margin-left:6px;
}
#drpAddressProof{margin-left:-3px;}
#txtIDExpiryDate{margin-left:14px;}
#txtAddExpiryDate{margin-left:14px;}
#drpResCity,#drpOffCity,#drpNativeCity{margin-left:16px;}
#txtIDIssuedAt{margin-left:8px;}
#txtIDIssueDate{margin-left:1px;}
#drpResState,#drpOffState,#drpNativeState{margin-left:0px;}
#cmdSubmit{margin-left:50%;margin-top:10px;width:80px;height:30px;}
.date,.num{display:none;color:red;font-weight:bold;margin-left:3px;}
/*Custom validator Styling*/
#opendate,#reqdopendate,#birthdate,#restelno,#resmobno,#offtelno,#offmobno,#nativetelno,#nativemobno,#telno,#mobno,#monthincome,#idexpirydate,#addexpirydate,#idissuedate,#addissuedate{color:Red;font-weight:bold;margin-left:3px;}
#birthdate1,#resmobno1,#offmobno1,#nativemobno1,#mobno1,#idissuedate1,#addissuedate1{color:Red;font-weight:bold;margin-left:-7px;}
#easyTooltip {
padding:5px 10px;
border:1px solid #195fa4;
background:#195fa4 url(bg.gif) repeat-x;
-moz-border-radius:8px;
-webkit-border-radius:8px;
-moz-border-radius-bottomleft:0px;
-webkit-border-bottom-left-radius:0px;
color:#fff;
}
#Validation {
height:auto;
width:auto;
margin-left:20px;
}
你應該發佈你的html和css樣本 – scibuff 2012-03-07 11:56:55
源代碼或一個地方來查看問題會很大,所以我們可以幫助你。沒有這些,我們不能提供很多幫助。 – 2012-03-07 11:57:13
可能是一個特異性問題http://css-tricks.com/specifics-on-css-specificity/在它上面讀取 – Henesnarfel 2012-03-07 11:59:19