如何设置asp.net网站屏幕兼容任何屏幕分辨率

时间:2015-02-25 09:07:52

标签: asp.net

我有一个asp.net网站。我需要在各种计算机上以各种屏幕分辨率使用它。如何使我的屏幕尺寸与各种屏幕分辨率兼容。请给出一个sln,这是我的代码。

<!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>Untitled Page</title>
</head>
<body>


    <form id="form1" runat="server">

    <div style="width: 100%; height: 100%">


 <br />

           <asp:Button ID="Button1" runat="server" BackColor="#5E4AB5" Text="ITEM REPORT"
                Width="200px" Font-Bold="True" ForeColor="White" onclick="Button1_Click" />

            <asp:Button ID="Button2" runat="server" BackColor="#5E4AB5" Text="INVOICE"
                Width="200px" Font-Bold="True" ForeColor="White" />

            <asp:Label ID="Label1" runat="server" ForeColor="#3399FF" Text="Label"></asp:Label>
        <br />

        <br />
        <br />
    <asp:Image ID="Image1" runat="server" Height="115px"
            ImageUrl="~/images/logo.png" Width="250px" />
        <br />
     <asp:Label ID="Label2" runat="server" BackColor="#FF6600" Font-Bold="True"
            Font-Size="X-Large" ForeColor="#990000"
            Text=" PRODUCT MANAGEMENT SYSTEM- HOME"></asp:Label>

        <br />
      <asp:ImageButton ID="ImageButton1" runat="server" Height="36px"
            ImageUrl="~/images/newlogo.jpg" PostBackUrl="https://www.somatco.com"
            Width="34px" />


    </div>
    </form>
</body>
</html>

0 个答案:

没有答案