删除网页边框

时间:2018-07-05 20:26:04

标签: html css bootstrap-4

在Colorlib创建的此模板中:https://colorlib.com/demo?theme=pemodule 我正在尝试删除网站外部的紫色边框。我似乎无法在CSS中弄清楚如何实现此边界以及如何删除边界。

只是想知道是否有人有任何想法。

非常感谢您的帮助。

3 个答案:

答案 0 :(得分:1)

边界是body的背景,网站的其余部分带有空白,在边界和视口边缘之间留有空间。

在main.css中,第1927行:

body {
    background: #4b379a;
}

在main.css中,第1931行:

.main-wrapper-first {
    width: 68.75%;
    margin: 0 auto;
    margin-top: 6rem;
}

答案 1 :(得分:0)

body标签具有以下内容:

body {
background: #4b379a;
}

将其更改为:

body {
background: white;
}

答案 2 :(得分:0)

在CSS中设置这些内容(我不知道您是否需要!important s),但是在这里:

.main-wrapper, .main-wrapper-first {
    width: 100% !important;
    margin-top: 0 !important; 
}

如果要将其添加到CSS,请将其放在底部。