html - 640px PSD 文件需要在所有设备中修复

标签 html css responsive-design media-queries viewport

i have only one PSD file which has width 640px from client and i have to fix in all device, from ios to windows with different screen device.

my problem is that i don't want to crop different images for small and big size device. I searched for some solution but i am confused with all using viewport, mediaquery. and new iphone5 have 1136px resolution i don't know how to achive with this PSD. I want to crop one size image for all device is it possible

最佳答案

找了半天发现可以用

<meta name="viewport" content="width=640">

让浏览器为您做其他工作。这是我从 apple.com 找到的。只需查看源代码http://www.apple.com

关于html - 640px PSD 文件需要在所有设备中修复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12403790/

相关文章:

javascript - 多级选择栏

html - 一个表占用其他表中单元格的可用高度

html - 只需要一点验证如何使背景视频适合带有覆盖文本的屏幕

javascript - 如何仅添加 js 和 css 智能手机?

html - 防止最后(流体)列在浏览器调整大小时下降?

html - 填充一个 FontAwesome 图标

javascript - CSS 中的反向查找

javascript - 单击if时如何最小化textarea

css - 视口(viewport)单元 VW 重叠 - 每个视口(viewport)小于 100 vw?

css - 当悬停子 <select> 的选项时,元素丢失 "hover"状态