简体   繁体   中英

Div does not adjust to fit height and width of the image

I have a div (div#slideImage) and within a few images.

But this is not div by adjusting the images inside that div.

See the full page. Note that the size of the div (width: 75px; height: 28px;) is smaller than the size of the image.

I'm using the plugin jquery.cycle

This probably isn't what you were expecting, but can't you just resize the image? It seems to make more sense to me than expecting the div to do the work for you.

If you specify the dimensions of a div, then contained nodes will either be clipped or scrolled depending on the div's overflow property. Your best bet is to set the dimensions of the div to more useful values.

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