Home > Net >  ASP.NET if the control code set the attribute of the same appearance with the controls, the final pa
ASP.NET if the control code set the attribute of the same appearance with the controls, the final pa

Time:10-13

TextBoxSkin. Skin:
<% - the default appearance - % & gt;



Default. Aspx:

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




<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;
Create a simple appearance & lt;/title> <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" style="border - color: red" & gt; </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" SkinID="textboxSkin & gt;" </asp: TextBox> <br/></td> <br/></tr> <br/></table> <br/></div> <br/></form> <br/></body> <br/></html> <br/><br/>The default appearance in control code 2 set the border color to red, in the result shows in red? Page eventually shows mainly controls the appearance of setting effect, isn't it? <br/><br/><img SRC="https://img.codepudding.com/202010/145139130605391.png" Alt=""/> <br/><br/><br/><br/><p class="article - content rp"> CodePudding user response: </p>Inline style has the highest priority, </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/net/64245.html" target="_blank" style="color:#999">https//www.codepudding.com/net/64245.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/net/64244.html'>How async_await method added to the event</a></div> <div class="detail-arr-right">Next:<a href='/net/64246.html'>(urgent) c # Winform Socket (Queue) asynchronous receive UDP Queue, out of memory. The transmission</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>