兩個行內元素的margin
信息來源:
優(yōu)度網絡 發(fā)布日期:2009/3/26 瀏覽數(shù)量:
1271次
文章導讀:
<html>
<head>
<title>兩個行內元素的margin</title>
<style type="text/css">
<!--
span{
background-color:#a2d2ff;
text-align:center;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
padding:10px;
}
span.left{
margin-right:30px;
background-color:#a9d6ff;
}
span.right{
margin-left:40px;
background-color:#eeb0b0;
}
-->
</style>
</head>
<body>
<span class="left">行內元素1</span><span class="right">行內元素2</span>
</body>
</html>