<%@ Page Language="C #"AutoEventWireup="true"codebehind="Show.aspx.cs"Inherits="Wlxxs.Web.Xxs.Show" %><!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Headrunat= "Server"> <title></title> <style>html, Body{padding:10px;margin:0 Auto;Height:0 Auto;Max-width:640px;font-family:"Microsoft Jas Black"; }. Mainimg{text-align:Center; }#Image1{Height:Auto;width:auto\9;width:100%;} </style></Head><Body> <Divclass= "Mainimg"> <Asp:imageID= "Image1"runat= "Server" /> </Div></Body></HTML>
Note: Insert the image in HTML, if you want the image to adapt to the screen's small instead of the width and height of the fixed can be added in the CSS code
#Image1{Height:Auto;width:auto\9;width:100%;}
HTML Image Adaptive Browser, width height adaptive, picture Adaptive screen small instead of width and height fixed unchanged