为了账号安全,请及时绑定邮箱和手机立即绑定

为什么多个span标签在一起,显示会重叠

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
   div {
     width:700px;
  height:30px;
  background:#fff;
  position:relative;
 
   }
div span {
    
     width:40px;
  height:30px;
  position:absolute;
   }
</style>
<script>
 function()
 {
    
 }
</script>
</head>

<body>
    <div id="pag">
        <span class="aa" "><a href="http://www.baidu.com" >Itmem0</a></span>
        <span class="aa" "><a href="http://www.baidu.com" >Itmem0</a></span>
        <span class="aa" "><a href="http://www.baidu.com" >Itmem0</a></span>
        <span class="aa" "><a href="http://www.baidu.com" >Itmem0</a></span>
        <span class="aa" "><a href="http://www.baidu.com" >Itmem0</a></span>
    </div>
</body>
</html>

正在回答

1 回答

属性名错了!

0 回复 有任何疑惑可以回复我~
#1

qq_only哎you_0 提问者

是div下的span标签啊
2017-06-30 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

为什么多个span标签在一起,显示会重叠

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信