码迷,mamicode.com
首页 > 移动开发 > 详细

移动端1px

时间:2016-09-24 17:34:38      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:

 先看大名鼎鼎的jquery weUI

技术分享

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<meta http-equiv="Pragma" content="no-cache" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="css/sb.css" />
		<style type="text/css">
			h3 {
				text-align: center;
			}
			
			.sb {
				width: 90%;
				height: 100px;
				margin: 10px auto;
				border: 1px solid red;
				box-sizing: border-box;
			}
			.sb1 {
				width: 100%;
				height: 1px;
				margin-top: 50px;
				background: red;
				 
			}
			.main {
				position: absolute;
				box-sizing: border-box;
				width: 180%;
				height: 200px;
				left: 5%;
				top: 200px;
				transform-origin: 0 0;
				border: 1px solid red;
				transform: scale(.5);
			}
			
			.main1 {
				width: 100%;
				height: 1px;
				margin-top: 100px;
				background: red;
				transform: scaleY(0.5);
			}
		</style>
	</head>

	<body>
		<h3>原始的</h3>
		<div class="sb">
			<div class="sb1">

			</div>
		</div>
		<h3>缩放后的</h3>
		<div class="main">
			<div class="main1">

			</div>
			
		</div>
	</body>

</html>

  技术分享

移动端1px

标签:

原文地址:http://www.cnblogs.com/libin-1/p/5903481.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!