在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
ASP.NET中 Panel(面板)的使用。
Panel(面板)其实Panel本质就是一个DIV
辛冰、小攸,小白,还有袁博
/Panel.aspx
View Code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Panel.aspx.cs" Inherits="WebControls_Panel" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .style1 { width: 223px; } </style> </head> <body> <form id="form1" runat="server"> <div> <h3>Panel(面板)</h3> <h5>其实Panel本质就是一个DIV</h5> <table style="width: 100%;"> <tr> <td class="style1"> 属性</td> <td> 值</td> <td> 作用</td> </tr> <tr> <td class="style1"> BackColor </td> <td> </td> <td> </td> </tr> <tr> <td class="style1"> BackImageUrl </td> <td> </td> <td> </td> </tr> <tr> <td class="style1"> Font-Bold </td> <td> </td> <td> </td> </tr> <tr> <td class="style1"> ForeColor </td> <td> </td> <td> 前景色(即字体的颜色)</td> </tr> </table> <hr /> <asp:Panel ID="pnlForm" runat="server" BackColor="#999966" BackImageUrl="http://images.cnblogs.com/likecs_com/ylbtech/453730/o_bear.jpg" Font-Bold="True" ForeColor="#333300" Height="600px"> <br /> 辛冰、小攸,小白,还有袁博<br /> <br /> </asp:Panel> </div> </form> </body> </html>
https://files.cnblogs.com/ylbtech/WebForm-BasicControl-HTML.rar
|
请发表评论