赞
踩
- <style>
- .red{
- border:5px solid red;
- background-color:green;
- }
-
- .pad-left{
- border:5px solid red;
- background-color:green;
- padding-left:50px;
- }
-
- </style>
-
- <span class="red"> 无内边距的span </span><br/> <br/>
-
- <span class="pad-left"> 左边距为50的span </span><br/>
- <style>
- .pad-left-one{
- border:5px solid red;
- background-color:green;
- padding: 20;
- }
-
- .pad-left-four{
- border:5px solid red;
- background-color:green;
- padding: 10 20 30 40;
- }
-
- </style>
- <br/>
- <span class="pad-left-one"> padding:20的span </span> <br/> <br/> <br/> <br/>
-
- <span class="pad-left-four">
- padding: 10 20 30 40 的span </span> <br/> <br/> <br/> <br/>
- <style>
- .red{
- border:1px solid red;
- background-color:green;
- }
-
- .margin{
- border:1px solid red;
- background-color:green;
- margin-left:10px;
- }
-
- </style>
-
- <span class="red"> 无外边距的span </span>
- <span class="red"> 无外边距的span </span>
-
- <br/>
-
- <span class="red"> 无外边距的span </span>
- <span class="margin"> 有左外边距的span </span>
- .box{
- width:70px;
- padding:5px;
- margin: 10px;
- }
- <style>
- .box{
- width:70px;
- padding:5px;
- margin: 10px;
- }
-
- div{
- border:1px solid gray;
- font-size:70%;
- }
- </style>
-
- <div>
- 其他元素
- </div>
-
- <div class="box">
- 内容宽度70px <br><br>
- 内边框:5px <br> <br>
- 外边距:10px <br>
- </div>
-
- <div>
- 其他元素
- </div>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。