我box学的不好,在家没事练手效果图
怎么才能吧多个超链接放在一行(绝对定位?)代码写的不好,各位谅解
[Asm] 纯文本查看 复制代码 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.box{
width:900px;
height:300px;
background-color:#fff;
}
.one{
background-image:url('1.gif');
margin-bottom:20px;
}
.tow{
background-color:blue;
}
.s{
width:35px;
height:30px;
margin-left:500px;
background-color:red;
}
</style>
</head>
<body>
<div class="box one">
<div class="s"><a href="#">首页</a></div>
</div>
<div class="box tow">1</div>
</body>
</html> |