How to make Nivo Slider Responsive

喜欢而已 提交于 2019-12-23 15:29:04

问题


I am using NivoSlider in WordPress and implemented some responsive css to the theme, I have fixed the width & height of the images and background size in Nivo Slider also but its displaying correct size only once and afterwards its displaying big images in the slider.

Here is the link to the site : Website

Please let me know if I am missing something.

Regards


回答1:


It was officially announced by nivo slider that it is responsive, Here is announcement.

http://nivo.dev7studios.com/2012/05/30/the-nivo-slider-is-responsive/

Demo :

http://nivo.dev7studios.com/responsive-demo/




回答2:


css

 #nivoSlider, #nivoSlider img{width:100%;height:auto !important}

HTML:

<div class="slider-wrapper theme-default">
    <div class="ribbon"></div>
    <div id="nivoSlider" class="nivoSlider">
       <img src="" />
    </div>
</div>


来源:https://stackoverflow.com/questions/13156708/how-to-make-nivo-slider-responsive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!