Has anybody made a website theme for the iPhone?

有没有人为iPhone制作网站主题?

Please let me know any tips or resources.

请告诉我任何提示或资源。

Here's my theory: How to make a website theme for iPhone

这是我的理论:如何为iPhone制作网站主题

  1. Create a website theme designed for desktop monitors. Try not to make any element larger than 320px (iPhone screen resolution).

    创建专为桌面监视器设计的网站主题。尽量不要使任何大于320px的元素(iPhone屏幕分辨率)。

  2. Create 2 style sheets. One for desktop monitors and another for iPhone. By default, the desktop version of the style sheet is called. The iPhone style sheet would display items in such a way that they fit inside the 320px resolution.

    创建2个样式表。一个用于桌面显示器,另一个用于iPhone。默认情况下,将调用样式表的桌面版本。 iPhone样式表将以适合320px分辨率的方式显示项目。

  3. Create JavaScript file that detects Screen Size. If screen size is less than than 321px, then the style sheet is replaced by the iPhone version style sheet.

    创建检测屏幕大小的JavaScript文件。如果屏幕尺寸小于321px,则样式表将替换为iPhone版本样式表。

2 个解决方案

#1


Liquid layouts work well. When you switch from landscape to portrait and back on the iPhone, text reflows. I've used this one.

液体布局效果很好。当您从横向切换到纵向并返回iPhone时,文本会重新流动。我用过这个。

更多相关文章

  1. 桌面视图中的SlikNav多级菜单?
  2. 如何在单击按钮时将桌面应用程序导航到系统中设置的默认邮件提供
  3. extjs4 desktop 实现仿win7效果的桌面窗口预览效果
  4. electron 将pc端(vue)页面打包为桌面端应用
  5. 如何用PYGtk设置Gtk Icon主题?
  6. Cerebro 一个跨平台的桌面快捷使用工具
  7. 【2017/4/13】centos或者linux安装完成后右键桌面没有open in te
  8. 汇总(之三):交叉编译工具链arm-none-linux-gnueabi-, Qt交叉编译安
  9. 手把手教你在ubuntu下创建桌面快捷方式

随机推荐

  1. 如何在chart.js中为饼图添加标签
  2. 禁用Chrome严格的MIME类型检查
  3. JavaScript正则表达式定义字符集
  4. 用npm-run自动化任务
  5. “错误:路径必须是字符串”(v5.10.0)
  6. 放在和中的javascript语句,但是语句不在函
  7. 使用php Ajax在数据库中插入动态数据
  8. 打字稿:无法访问类属性[重复]
  9. Change ALL links, hrefs,urls with vani
  10. 1、突然对jQuery的心血来潮