2012-03-07 95 views
0

我正在使用外部stylesheet为我的default.aspx页面样式,我正在使用母版页在我的项目中。我指stylesheetmaster页面。 我的问题是,我有我的许多formdropdownstextboxes,我同时使用classesid's每个control.When我使用classstylesheet改变一个特定的控制都体现,,但是当我用身份证styling,变化没有反映出来。控制仍然保持原样。这肯定是明显的,我可能会失踪。我正在使用'。'。和'#'分别为classid.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; 
} 
+0

你应该发布你的html和css样本 – scibuff 2012-03-07 11:56:55

+0

源代码或一个地方来查看问题会很大,所以我们可以帮助你。没有这些,我们不能提供很多帮助。 – 2012-03-07 11:57:13

+1

可能是一个特异性问题http://css-tricks.com/specifics-on-css-specificity/在它上面读取 – Henesnarfel 2012-03-07 11:59:19

回答

0

可能是一个本地缓存的问题?试图清除你的浏览器缓存和重新加载页面

如果你的ID是错误的。或者你正尝试使用它来设计一些不适用的东西(例如内联元素上的margin-top/bottom)