1 DOCTYPE html>
2 <htmllang="en">
3 <head>
4 <metacharset="UTF-8" />
5 <metahttp-equiv="X-UA-Compatible" content="IE=edge" />
6 <metaname="viewport" content="width=device-width, initial-scale=1.0" />
7 <title>Documenttitle>
8 <style>
9 *{
10 margin: 0;
11 padding: 0;
12 }
13 #wrap{
14 background-color: pink;
15 width: 500px;
16 height: 400px;
17 text-align: center;
18 line-height: 400px;
19 }
20 span{
21 background-color: cornflowerblue;
22 }
23 style>
24 head>
25 <body>
26 <divid="wrap">
27 <span>Aspan>
28 <span>Bspan>
29 div>
30 body>
31 html>
网站题目:CSS之行内元素排列之间的缝隙问题及解决方案
标题URL:
http://kswsj.cn/article/dsojshe.html