CNode

现阶段,负边距的兼容性是不是最好的?

问答
Yyakczh发布于11 年前最后回复11 年前3 回复3478 浏览0 收藏

对于国内环境来说

查看回复

回复 (3)

B
bluenaux#1·11 年前

解决哪个问题? https://developer.mozilla.org/en-US/docs/Web/CSS/margin MDN下面都有兼容性列表 http://caniuse.com/

Y
yakczh#2·11 年前
引用 bluenaux解决哪个问题? https://developer.mozilla.org/en US/docs/Web/CSS/margin MDN下面都有兼容性列表 http://caniuse.com/

@bluenaux

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html  >
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
    <style>
li {
    list-style:none;
    height:40px;
    line-height:40px;
    margin-top:1px;
    background:green;
   margin-left:60px;
   }
li a{
    margin-left:-60px;
   }
li b{
  float:right;margin-right:-60px;
 }
 
    </style>
</head>
<body>
   <script>
   document.write(navigator.userAgent)
    </script>
    <hr>
    <ul>
		  <li style="width:160px;"> <a> golang  </a> <b  >111 </b></li> 
		  <li style="width:200px;"> <a> nodejs </a> <b >2222  </b></li>
		  <li style="width:120px;"> <a> php7 </a> <b >333  </b></li>
    </ul>
</body>
</html>

这个右面数字ie下出了点问题

参与回复
登录后即可参与回复。登录