码迷,mamicode.com
首页 > 微信 > 详细

学习微信小程序之css17定位

时间:2017-01-12 18:17:05      阅读:310      评论:0      收藏:0      [点我收藏+]

标签:相对   image   快速   pre   $*   bottom   技术   ima   nbsp   

相对定位

 

技术分享

 相对定位

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
       div{
           width: 100px;
           height: 100px;
           background-color: yellow;
           border: 1px solid teal;
           margin-bottom:10px;
       }
     .box2{
         /*position: relative;相对定位,相对于原来的位置进行设置*/
         position: relative;
         right: -30px;
         top: -30px;

     }
    </style>
</head>
<body>
     <!--div.box$*3+tab 快速创建-->
     <div class="box1"></div>
     <div class="box2"></div>
     <div class="box3"></div>
</body>
</html>

技术分享

学习微信小程序之css17定位

标签:相对   image   快速   pre   $*   bottom   技术   ima   nbsp   

原文地址:http://www.cnblogs.com/hywbk/p/6279242.html

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