简体   繁体   English

用于删除背景图像的 Bootstrap 类

[英]Bootstrap class to remove background image

Is there any bootstrap class which can remove a background image from the div?是否有任何引导类可以从 div 中删除背景图像?

I have this style in css:我在 css 中有这种样式:

background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0));

and i want to remove it like this:我想像这样删除它:

bg-img-none

or something else,或者是其他东西,

can somebody tell me how to do it?有人可以告诉我怎么做吗?

‍‍‍No, but you can add it yourself. ‍‍‍没有,但是你可以自己添加。

.bg-img-none {
    background-image: none !important;
}
.bg-none {
    background: none !important;
}

you can use bg-transparent to make the background transparent.您可以使用bg-transparent使背景透明。 this will not make the background as null but change the transparency of area to 0. you can check out it at bootstrap documnetation .This documentation is for colour backgrounds.这不会使背景为空,而是将区域的透明度更改为 0。您可以在bootstrap文档中查看它。此文档适用于彩色背景。 OR you can add a custom CSS to remove the background或者您可以添加自定义 CSS 来删除背景

.bg-img-none{
background-image: none;
background: none;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM