简体   繁体   中英

How to Remove Styles which by default apply in ASP.net Validation Controls?

Guys I am trying to remove default applied styles to the Validation Controls in asp.net. I am used Theam and set it Web.config still it applying.

How can i FIx

Create a CSS File and try to override this class validator ,

.validator
{
    //add your CSS here and then use !important, for example: 
    color: black !important;
}

Then add this class to the Validation Control using CssClass property.

be sure to reference the CSS file to your layout or view or use <Style> tag at head and add this class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM