Chrome刚刚更新了,我现在注意到新版本没有正确显示我的页面。看来,如果我有一个百分比的上边距,它将边距基于页面的宽度而不是高度。我做错了吗?
这是测试代码:
<!doctype html>
<html>
<body>
<div style="margin-top: 50%">
Hello!
</div>
</body>
</html>
以下是展示此问题的超短视频:http://cl.ly/2T0c132T3U2y
非常感谢任何帮助。
答案 0 :(得分:6)