如何设计一个既适合移动版又适合桌面版的网站,HTML 4和CSS 2是否有指导方针?
您需要研究响应式框架 。
There are tons of articles and tutorials and frameworks which you can use. No holy grail here because each website is different.
Some interesting articles in the topic:
http://www.html5rocks.com/en/mobile/responsivedesign/
http://smashingmagazine.com/tag/responsive-design/
http://www.alistapart.com/articles/responsive-web-design/
Frameworks, tools you can use:
http://html5boilerplate.com/mobile
Hope it helps.
If you want to develop from scratch as you pointed out in the comments, this will help you a lot:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.