Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种方法可以使用内置的 Wordpress Gallery 功能,并为移动设备和桌面提供不同大小的缩略图。目前我正在使用媒体查询来确定视口大小并提供不同的样式表,但我不知道如何确定要为移动设备和桌面显示什么缩略图大小?
有小费吗?
根据原始图像大小,您可以将其缩放为可用视口的百分比宽度。您是否计划为您的移动用户提供完全不同的体验?您似乎已经在使用正确的技术