MobileReport的default.aspx,使用CSS控制Table 中的CheckBox的字型大小
default.aspx页面中,使用CSS可以控制字型大小,也可以在page_load里使用
Table.Font控制字型大小。
使用CSS的具体的html显示:
起作用的是:<style type="text/css">.....
和Table中的CssClass="tab"
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>
<!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>