文章详情页
css - 想让border向上移动1px margin-bottom:-1px不好使
浏览:146日期:2023-06-25 10:04:47
问题描述
请输入代码
#nav { width: 100%; height: .5rem; background: #eee; font-size: .18rem;}#nav ul { /* list-style: none;*/ padding: 0; margin: 0;}#nav ul li { width: 24%; height: .5rem; display: inline-block; line-height: .5rem; text-align: center;}#nav ul li.active { color: #0099FF; border-bottom: 1px solid #0099FF; margin-bottom: -1px;}
问题解答
回答1:不太理解你的需求,你用position试试
标签:
CSS
相关文章:
1. css - 关于伪类背景问题2. html - 移动端radio无法选中3. apache - 怎么给localhost后面默认加上8080端口4. html5 - 如何实现图中的刻度渐变效果?5. windows-7 - Win7中Vmware Workstatoin与Xampp中Apache服务器端口冲突?6. mysql - 数据库建字段,默认值空和empty string有什么区别 1107. python - 用scrapy-splash爬取网站 为啥iframe下的内容没有被返回8. 关于Navicat连接到mysql,我改了root的密码后,Navicat连接报错1862?9. mysql起不来了,为什么?10. mysql里show full processlist,进程很少
排行榜
