关于谷歌浏览器 position: fixed;属性的右边框超出问题

如下图片图片描述

那个右边框在浏览器窗口大小改变拖动的时候总是多出来一小节 请问这个是什么原因导致的??

index_all div#index_head{

position: fixed;
width: 1350px;
height:100px;
background-color:#E0E0E0;
z-index: 9999;

}
/*

index_head img{

display: inline-block;

}
*/

index_head ul{

position: absolute;
top:10px;
display: inline-block;
list-style: none;

}

index_head li.name{

position: relative;
left: 30px;
padding-bottom: 10px;

}

index_head li.message{

padding-top: 10px;
border-top: 2px solid #000;

}

阅读 3.6k
1 个回答

我猜是inline-block的原因,你试试把字号设为0,看看还有没有空白

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题