简体   繁体   English

移动和桌面使用不同的Wordpress Gallery缩略图大小吗?

[英]Different Wordpress Gallery Thumbnail sizes for Mobile and Desktop?

Is there a way of using the built in Wordpress Gallery function and have different sized thumbnails for mobile and desktop. 是否可以使用内置的Wordpress Gallery功能,并为移动设备和台式机使用不同大小的缩略图。 At the moment I am using Media Queries to determine viewport size and deliver a different stylesheet but I can't figure out how to determine what thumbnail size to show for mobile and desktop? 目前,我正在使用媒体查询来确定视口大小并提供不同的样式表,但我不知道如何确定要为移动设备和台式机显示的缩略图大小?

Any tips? 有小费吗?

Depending on the original image size, you will be fine scaling it as a percentage width of the available viewport. 根据原始图像的大小,可以将其微调为可用视口的百分比宽度。 Are you planning on delivering a completely different experience for your mobile users? 您是否打算为移动用户提供完全不同的体验? You seem to be already using the correct technique 您似乎已经在使用正确的技术

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

相关问题 浮动缩略图库,大小不一,如何处理? - Floated thumbnail gallery, different sizes, how to handle? 桌面和移动设备中不同的img大小 - Different img Sizes in Desktop and Mobile 移动尺寸和桌面上的不同导航栏样式 - Different navbar styles in mobile sizes & desktop Bulma 桌面、平板电脑或移动设备上的不同列大小 - Bulma different column sizes on desktop, tablet or mobile 在桌面和移动设备的页面上设置不同的字体大小 - Setting different font sizes on page for desktop and mobile 使用jQuery以移动平板电脑和台式机分辨率显示不同尺寸的图像 - Display different sizes image in mobile tablet and desktop resolution using jquery 根据用户是移动用户还是桌面用户显示不同的标题图像? (WordPress,“二十七岁”) - Display a different header image depending on if the user is mobile or desktop? (Wordpress, “TwentySeventeen”) WordPress:隐藏图库中的特色图片缩略图 - Wordpress: Hide featured image thumbnail from gallery flex 框中的图像显示移动设备 chrome 和桌面 chrome+设备模式之间的不同尺寸 - Image in flex box showing different sizes between mobile device chrome and desktop chrome+device mode 手机/台式机的不同菜单 - Different menus for mobile/desktop
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM