HTML5 Viewport Meta Tag

https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html

https://dev.opera.com/articles/an-introduction-to-meta-viewport-and-viewport/

http://developer.blackberry.com/playbook/html5/documentation/viewport.html

https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag?redirectlocale=en-US&redirectslug=Mobile/Viewport_meta_tag

https://msdn.microsoft.com/en-us/library/windows/desktop/bb152361(v=vs.85).aspx

 http://htmlref.com/

 

<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">

<style type="text/css">
.textfield_ {
	border: 0px;/**/
	font-size: 1.5em;
	width:200px;
	height: 30px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	font-weight: bold;
	background-repeat: no-repeat;
	background-position: center;
	color: #42261A;
	font-family: Arial, Helvetica, sans-serif;
}
.abc{ width:100%;align:right;valign:top;padding-left:50%;}
/* 设置了浏览器宽度不大于 2160px 时 abc 显示1200px宽度 */  
@media screen and (max-width: 2160px) { 
.abc {padding-left:800px;} 

} 
/* 设置了浏览器宽度不大于 1080px 时 abc  */ 
@media screen and (max-width: 1081px) { 
.abc {padding-left:450px;} 
} 
/* 设置了浏览器宽度不大于720px时 abc  */ 
@media screen and (max-width: 768Px) { 
.abc {padding-left:330px;} 
} 
/* 设置了浏览器宽度不大于720px时 abc  */ 
@media screen and (max-width: 720px) { 
.abc {padding-left:300px;} 

} 
/* 设置了浏览器宽度不大于500px时 abc  */ 
@media screen and (max-width: 640px) { 
.abc {padding-left:250px;} 
.textfield_{font-size: 1.1em;width:150px;	height: 18Px;}
} 
/* 设置了浏览器宽度不大于500px时 abc  */ 
@media screen and (max-width: 414px) { 
.abc {padding-left:160px;} 
.textfield_{font-size: 1.0em;width:150px;	height: 18Px;}
} 
/* 设置了浏览器宽度不大于500px时 abc  */ 
@media screen and (max-width: 320px) { 
.abc {padding-left:120px;} 
.textfield_{font-size: 0.9em;width:150px;	height: 18Px;}
} 
</style>

</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0">
<div align="center"><img width="100%" src="images/top.png" border="0"></div>
<div style="float:left;position:absolute;align:center;z-index:9;padding-top:11%;">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <tr>
	      <td class="abc">
	      	<input class="textfield_" name="textfield" type="text" id="textfield" value="10330" height="14"  />
	      </td>
	    </tr>
	    <tr height="8px;">
	    	<td colspan="2"></td>
	    </tr>
	    <tr >
	      <td class="abc">
	      	<input class="textfield_" name="textfield2" type="text" id="textfield2" value="210000055878781" height="14"  />
	      </td>
	    </tr>
	   
		</table>
	</div>
<div style="align:center;float:left;z-index:-1;" ><img width="100%" src="images/mid.png" border="0">
	
	
</div>
<div align="center"><img width="100%" src="images/buttom.png" border="0"></div>

  


更多专业前端知识,请上 【猿2048】www.mk2048.com
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值