Home > Net >  ASP.NET inline style> Theme Settings of the external style style> internal StylesheetTheme set
ASP.NET inline style> Theme Settings of the external style style> internal StylesheetTheme set

Time:10-13

TextBoxSkin. Skin:

<% - the default appearance - % & gt;


<% - & lt; Asp: TextBox SkinID="textboxSkin" runat="server" BackColor="# FFCC99 BorderColor=" "# FF6600 BorderStyle"="Dotted" BorderWidth="2 px & gt;"
- % & gt;

Default. Aspx:

<% @ Page Language="c #" AutoEventWireup="true" CodeFile="Default. Aspx. Cs" Inherits="_Default StyleSheetTheme"="TextBoxSkin % & gt;"



<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;
Create a simple appearance & lt;/title> <br/><style type="text/css"> <br/>The style <br/>{<br/>border-color:red; <br/>} <br/></style> <br/></head> <br/><body> <br/><The form id="form1" runat="server" & gt; <br/><div> <br/><Table> <br/><tr> <br/><td> <br/>The default appearance 1: <br/></td> <br/><Td & gt; <br/><Asp: TextBox ID="TextBox1" runat="server" & gt; </asp: TextBox> <br/></td> <br/></tr> <br/><br/><tr> <br/><td> <br/>The default appearance 2: <br/></td> <br/><Td & gt; <br/><Asp: TextBox ID="TextBox2" runat="server" Css> </asp: TextBox> <br/></td> <br/></tr> <br/><br/><tr> <br/><td> <br/>Named appearance: <br/></td> <br/><Td & gt; <br/><Asp: TextBox ID="TextBox3" runat="server" & gt; </asp: TextBox> <br/></td> <br/></tr> <br/></table> <br/></div> <br/></form> <br/></body> <br/></html> <br/>Results: <br/><img SRC="https://img.codepudding.com/202010/146174132242031.png" Alt=""/> <br/><br/>If, in accordance with the inline style> Theme Settings of the external style style> internal StylesheetTheme external style, set the default appearance 2 should not be modified into a red border? <br/><p class="article - content rp"> CodePudding user response: </p>Css to give it a try, <br/><p class="article - content rp"> CodePudding user response: </p><fieldset> <legend> reference 1st floor is nu month god reply: <legend> <blockquote> Css to give it a try, </blockquote> <fieldset> <br/>Tried, not become red <br/><p class="article - content rp"> CodePudding user response: </p>Because your skin is inline style, set priority is greater than the class set, you should be the skin is also set to class reference, then modify the actual control of a class should play a role, </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/net/65239.html" target="_blank" style="color:#999">https//www.codepudding.com/net/65239.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/net/65238.html'>C # how to monitor already open the serial port of the received data</a></div> <div class="detail-arr-right">Next:<a href='/net/65240.html'>About the transfer the client visit</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=ASP.NET' target='_blank'>ASP.NET</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>