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.
如何将 body 元素设置为始终占据 iPhone 上可视视口宽度和高度的 100%?我想在可视视口(UIWebView)中垂直和水平地居中元素。
这行得通吗?
<img src="#" style="margin:0 auto;" />
把这个放在头标签里面
<meta name="viewport" content="width=device-width, initial-scale=1">