简体   繁体   中英

How to make an image full width in page

Hi guys I want to put this part of my website with full width with CSS but I can't find a code that works in that part and I don't understand why.

我需要帮助的地方

What can I do to make this picture full width?

Add this style

  .banner_img {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%);
   }

I found a way of doing what you want.

1- You need to "push" your other content down:

参考

2- Apply those properties to your image:

参考

Hope it helps you.

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