如何设置与任何屏幕分辨率兼容的asp.net网站屏幕 [英] How to set the asp.net website screen compatible to any screen resolution
本文介绍了如何设置与任何屏幕分辨率兼容的asp.net网站屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp.net网站.我需要以各种屏幕分辨率在各种计算机中使用它.如何使屏幕尺寸在各种屏幕分辨率下都可压缩.
I have a asp.net website. I need to use it in various computers at various screen resolution. How can I make my screen size compactible with various screen resolution.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default6.aspx.cs" Inherits="Default6" %>
<!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>
推荐答案
引用本文:调整您的网站以适合所有类型的HTML和CSS的分辨率
Hi,
Ref this article : Adjusting your websites to fit all types of resolution using HTML and CSS
这篇关于如何设置与任何屏幕分辨率兼容的asp.net网站屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文