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.
当我们创建页面时,如何确保页面在每个屏幕上看起来都一样?我正在为平板电脑做这件事。我可以设置一个 700px 或 900px 宽度的类,但如果更高分辨率的平板电脑加载网站怎么办?左右两边都会有空位。如何避免这种情况?
拥有一些空白空间并没有那么糟糕——它也给眼睛一些放松的空间。你永远无法适应所有的分辨率,所以只要让你的设计更灵活一点。
我想你可以使用响应式网页设计。我个人推荐Twitter bootstrap。
请参阅此处的文档。它很容易。