Javascript 如何卸下上边缘主体
这是我安排的Javascript 如何卸下上边缘主体,javascript,html,css,Javascript,Html,Css,这是我安排的 .image-head { background-image:url(http://placehold.it/1920x1080); background-size: cover; background-repeat: no-repeat; background-position: top center; height: 1000px; width: 100%; margin: 0; padding: 0; c
.image-head {
background-image:url(http://placehold.it/1920x1080);
background-size: cover;
background-repeat: no-repeat;
background-position: top center;
height: 1000px;
width: 100%;
margin: 0;
padding: 0;
color: black;
#text-align: center;
}
body {
margin: 0;
padding: 0;
}
我的代码是完整的
如何删除上边距
.media_bar {
margin-top: 0;
}
Fiddle:有一个由
ul
元素添加的边距,其类别为“媒体条”
。下面是快照
在此类中设置页边距顶部:0
也许问题出在
html
元素上。。。给它一个零的边距/填充too@JaromandaX不,不是。这是“媒体吧”课程。请看我的回答,问题中没有“媒体栏”类,有一把小提琴……相关代码应张贴在问题本身中。答案是关于问题中不存在的媒体栏。我们不应该离开现场去检查你的问题。指向演示的链接很好,但只应用于支持问题本身中实际存在的内容