javascript - 关于谷歌浏览器 position: fixed;属性的右边框超出问题
PHP中文网
PHP中文网 2017-04-11 10:27:55
[JavaScript讨论组]

如下图片

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

index_all p#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;

}

PHP中文网
PHP中文网

认证0级讲师

全部回复(1)
巴扎黑

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号