Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我有一个导航栏和一个轮播并排在一起时,它们之间有 20 像素的垂直间隙。如何消除差距?
谢谢,
每
正如 user814628 所说,导航下方有一个间隙,因为.navbar底部有一个边距 CSS 属性。这将解决它:
.navbar
.navbar { margin-bottom: 0px; }
js小提琴