简体   繁体   中英

Bootstrap class to remove background image

Is there any bootstrap class which can remove a background image from the div?

I have this style in 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. 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. OR you can add a custom CSS to remove the background

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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