现阶段,负边距的兼容性是不是最好的?
对于国内环境来说
2 回复
<!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下出了点问题