我的 body 有 8px 的边距,但在我的 css 中我有:
body {
margin: 0 !important;
padding: 0 !important;
}
为什么不遵守样式? CSS 文件加载正确,我已经检查过了。
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/styles.css" />
</head>
<body id="page-name">
<div id="drag-overlay"></div>
<h1>Title</h1>
</body>
</html>
最佳答案
你试过吗
html, body {
margin: 0 !important;
padding: 0 !important;
}
关于css - 车身无余量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23805642/