简体   繁体   中英

HTML CSS image size

I'm having trouble sizing an image with CSS.

That's because I set it as 50% but after i need to use it as 100%.

Here is the problem link

When I click "compare" on the top, the size of the image doesn't fill the box.

Any ideas?

.compare-basket .product__image {
  max-width: 100%;
}

Add the above CSS

Try this one. edit your css file http://paula.url.ph/temvaga/css/component.css and add this code in that file.

.compare-basket img{
max-width: 100%;
max-height: 100%;
}

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