简体   繁体   English

将滑块图像调整为屏幕大小[jquery cycle plugin]

[英]Resize slider image to screen size [jquery cycle plugin]

I am trying to resize the slider image to the screen size , i tried using 100% width but still cant get the slider image to width 100% screen size , I am using jquery cycle plugin for slider. 我正在尝试将滑块图像调整为屏幕尺寸,我尝试使用100%的宽度,但仍无法将滑块图像宽度调整为屏幕尺寸的100%,我在使用jquery cycle插件作为滑块。 The test website is on Testwebsite 测试网站位于Testwebsite

To get a fullscreen image working responsively, I'd suggest looking at the MaxImage plugin. 为了使全屏图像响应正常,我建议您查看MaxImage插件。 As that page state, no need to reinvent the wheel. 在该页面状态下,无需重新发明轮子。 So, it's just a case of calling the additional plugin and changing your code from: 因此,这只是调用附加插件并将代码从以下位置更改的一种情况:

$('#slides').cycle({...

to: 至:

$('#slides').maximage({...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM