ITPub博客

首页 > 应用开发 > > 为什么这html 代码不能一行剧中显示呢?

为什么这html 代码不能一行剧中显示呢?

作者:Boriszhang 时间:2019-09-27 16:03:20 0 删除 编辑

<!DOCTYPE html>

<html>

<head>

<title></title>

<meta charset="utf-8">

<style type="text/css">

body{

margin: 0;

padding: 0;

}

div{

width: 300px;

            height: 30px; 

            border: solid #00ff00 1px;

            line-height: 30px;

}

span{

display: inline-block;

width: 12px;

height: 100%;

background: red;

}

</style>

</head>

<body>

   <div>

    <span></span> <a href="">内容</a><a href="">内容</a><a href="">内容</a>    

   </div>

</body>

</html>

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2435/viewspace-3163180/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-16

  • 博文量
    110
  • 访问量
    1069