span宽度高度设置

 1 <!DOCTYPE html>

 2 <html xmlns="http://www.w3.org/1999/xhtml">

 3     

 4     <head>

 5         <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

 6         <title>

 7             span宽度高度设置

 8         </title>

 9         <style>

10             .inner_span{ 

11                 width:150px;

12                 height:100px; 

13                 border:1px solid #000; 

14 

15                 display:-moz-inline-box;

16                 display:inline-block; 

17             }

18         </style>

19     </head>

20     

21     <body>

22         我在SPAN标签外<span class="inner_span">我在SPAN标签内</span>我在SPAN标签外

23     </body>

24 </html>

 

你可能感兴趣的:(span)