zoukankan      html  css  js  c++  java
  • ASP.NET中 Panel(面板)的使用

    ylbtech-ASP.NET-Control-Basic: Panel(面板)的使用

     ASP.NET中 Panel(面板)的使用。

    1.A,运行效果返回顶部

    Panel(面板)

    其实Panel本质就是一个DIV
      属性 作用
     BackColor    
     BackImageUrl    
     Font-Bold    
     ForeColor     前景色(即字体的颜色)


    辛冰、小攸,小白,还有袁博

    1.B,源代码返回顶部
    /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=" 100%;">
                <tr>
                    <td class="style1">
                        &nbsp;
                        属性</td>
                    <td></td>
                    <td>
                        作用</td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;BackColor
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;BackImageUrl
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;Font-Bold
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        &nbsp;ForeColor
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                        前景色(即字体的颜色)</td>
                </tr>
            </table>
            <hr />
            <asp:Panel ID="pnlForm" runat="server" BackColor="#999966" 
                
                BackImageUrl="http://images.cnblogs.com/cnblogs_com/ylbtech/453730/o_bear.jpg" 
                Font-Bold="True" ForeColor="#333300" 
                Height="600px">
                <br />
                辛冰、小攸,小白,还有袁博<br /> 
                <br />
            </asp:Panel>
        </div>
        </form>
    </body>
    </html>
    1.C,资源下载返回顶部

    https://files.cnblogs.com/ylbtech/WebForm-BasicControl-HTML.rar

    warn 作者:ylbtech
    出处:http://ylbtech.cnblogs.com/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    希尔排序
    快速排序
    归并排序
    插入排序
    简单选择排序
    冒泡排序
    算法之时间复杂度和空间复杂度
    数据结构与算法思维导图
    rootfs根文件系统
    kernel 2.6.35.7向S5PV210移植
  • 原文地址:https://www.cnblogs.com/ylbtech/p/2945595.html
Copyright © 2011-2022 走看看