【发布时间】:2015-04-24 22:50:43
【问题描述】:
由于某种原因,当您访问我网站的主页时:
chrome 或 safari 上的 bluestarnj.com 页面顶部被截断。这只发生在浏览器高度较小的笔记本电脑上。它在Firefox中渲染得非常好。现在,如果我告诉它距离顶部 300 像素的位置,它会在这些浏览器中正确呈现,但在 Firefox 中它会被推到页面下方太远。该类的 CSS 代码如下:
.main_content {
width: 1000px;
height: 900px;
margin: auto;
position: absolute;
top: 50px;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(white, grey);
border-style: solid;
border-width: 0.188em;
border-radius: 1.563em;
border-color: red;
display: block;
}
【问题讨论】:
-
它在桌面上正确显示,没有问题。
标签: html css google-chrome safari