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.
我有一个滑块,由于某种原因,它一半服从边距 0?另外,无论如何我可以让顶部栏背景周围没有这么大的白色边框吗?我试图让它在浏览器 url 栏下方开始,但它似乎留下了相当大的差距? http://ispiked.net/tests
添加position: relative到 div 中class="oneByOne1"。那应该修复滑块。
position: relative
class="oneByOne1"
至于顶栏,添加margin: 0;到body元素和p里面的元素.topbar- 之后您可能想要向padding-top: 15px同一个p元素添加类似的东西。
margin: 0;
body
p
.topbar
padding-top: 15px
另外,无论如何我可以让顶部栏背景周围没有这么大的白色边框吗?
尝试过类似 CSS
html, body { margin: 0px; padding: 0px; }
在开始时重置布局?