我实际上认为这是一个非常好的问题。 现在令人不满意的情况是,在10个“桌子上,当台式版仅被罚款时,你就在空洞的单一颜色“机动”现场服务。
不幸的是,正如约翰·亨特所发现的,甚至世界野生动植物群也没有准确的体格大小。
One semi-workaround is a heuristic assuming that if either the x or y dimension is less than 768 pixels then you are on a phone(*) and thus serve the single-column "mobile" version of your site by default.
您仍应始终允许访问者选择移动式或台式。 更可取的是,仅将其称为“s”或“lim”的贵址,以避免错误。
(*) Why 768 pixels? Because all 10" tablets of any importance are at least 1024x768 or 1280x800, whereas even phones with big screens such as the iPhone 5 or HTC HD5 have widths less than 768 pixels (iPhone 5 - 640x1136, HTC HD5 1280x720). This will probably not work on the giant samsung screens, but on those devices, having the desktop version served by default is not as annoying.