MobileReport的default.aspx,使用CSS控制Table 中的CheckBox的字型大小

來源:互聯網
上載者:User
default.aspx頁面中,使用CSS可以控制字型大小,也可以在page_load裡使用
Table.Font控制字型大小。
使用CSS的具體的html顯示:
起作用的是:<style type="text/css">.....
和Table中的CssClass="tab"<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="MobileReport.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>WebForm1</title>
        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" Content="C#">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
        <style type="text/css">.tab {}{ FONT-SIZE: 11px }
        </style>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
            <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 144px; POSITION: absolute; TOP: 136px" runat="server"
                Width="48px">工號:</asp:Label>
            <asp:TextBox id="tbuserid" style="Z-INDEX: 102; LEFT: 208px; POSITION: absolute; TOP: 136px"
                runat="server" Width="128px"></asp:TextBox>
            <asp:Button id="btnGetmobile" style="Z-INDEX: 103; LEFT: 360px; POSITION: absolute; TOP: 136px"
                runat="server" Text="擷取號碼"></asp:Button>
            <asp:Table id="Table" style="Z-INDEX: 104; LEFT: 152px; POSITION: absolute; TOP: 208px" runat="server"
                Width="184px" Height="104px" EnableViewState="False" CellSpacing="5" CellPadding="3" CssClass="tab"></asp:Table>
            <asp:Button id="btnShow" style="Z-INDEX: 106; LEFT: 504px; POSITION: absolute; TOP: 136px" runat="server"
                Width="120px" Text="顯示指定使用者的號碼"></asp:Button>
            <asp:Label id="lblShow" style="Z-INDEX: 107; LEFT: 56px; POSITION: absolute; TOP: 24px" runat="server"
                Width="528px" Height="56px"></asp:Label><FONT face="宋體"></FONT> <FONT face="宋體">
            </FONT>
        </form>
    </body>
</HTML>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.