[英]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.