首页 > 代码库 > 移动端1px
移动端1px
先看大名鼎鼎的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="http://www.mamicode.com/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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。