0

我有一个带有这些属性的标题:

position: fixed;
top: 0px;
left: 0px;
background: rgba(0, 0, 0, 0.5);
font-size: 20px;
width:100%;
height: 45px;
z-index:100000000000000000;

http://regaderamay.es.vu/cumpled

在所有浏览器中它看起来都不错,但在 chrome 中看起来只有 1px 的标题高度。我认为这与壁纸的滑块图像有关。但不知道如何修复它。有什么帮助吗?

在 Mac 版 Chrome 中: 在此处输入图像描述 我以红色突出显示的是标题的左侧

4

1 回答 1

0

@Jaumesv,我认为这与z-index Chrome bug有关。据我所知,该错误尚未修复。您可能想尝试使用position: absolute而不是position: fixed,尽管我在 web 检查器中尝试过并且没有运气。

于 2013-08-26T18:53:04.160 回答