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