简体   繁体   中英

Unslider issue with height and width

Using unslider.com responsive slider I got an issue.

Code index.html pastebin.com/5699b3DL

图片1
(source: iv.pl )

图片2
(source: iv.pl )

As you can see image is not centered and its not fit to window size. And its not responsive.

Tried: Setting paddings, margins 0px to img, ul etc Height initial,width %,initial etc

Any ideas how to fix that?

The answer is:

.unslider img { max-width: 100%; margin: 0 auto; }

I have tried this with firefox editor, but only pasting this to CSS file fixed issue, strange.

Are you using on you main site as well with those placehold.it images? Because, it seems to be the cause. When I am replacing those with proper images, with their complete urls( http://LLLL.com/img.jpg ). It works fine.

Try that, or provide a jsfiddle.

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