【发布时间】:2011-09-07 17:19:33
【问题描述】:
我在添加 svg 文件作为背景时遇到问题。一切似乎都很好,但在 Google Chrome 中,我在 svg 的右侧和底部得到了不活跃的滚动条,而不是容器。这是问题结果的截图:http://xmages.net/show.php/2812560_strangescrollbars-jpg.html
这就是css的部分
#container>footer {
width: 1000px;
margin: -124px auto 0;
padding-top: 221px;
background: transparent url("../img/footerBackground.png") no-repeat 42px 0;
}
.backgroundsize.svg #container>footer {
background: transparent url("../img/vector/footerBackground.svg") no-repeat 42px 0;
background-size: 553px 166px;
}
我不知道它们是从哪里来的。有什么帮助吗?
【问题讨论】:
-
我也遇到了同样的问题!与 Firefox 配合良好。见i.imgur.com/cWoHZ.png
-
是的,就在这里!也许我们应该向 chrome(或 webkit)开发人员发送一张票?我只是不知道如何很好地解释这个问题
标签: css google-chrome background svg