gpt4 book ai didi

css - IE11 忽略底部 0;

转载 作者:太空宇宙 更新时间:2023-11-04 10:44:26 24 4
gpt4 key购买 nike

我有以下 html 元素:

<header id="w-header">
<div> ... </div>
<img class="arrow-down" src="arrow.svg">
</header>

采用这种样式:

#w-header {
height: 650px;
background-position-y: -10px;
}

#w-header .container {
padding-right: 20px;
padding-left: 20px;
bottom: 76px;
position: absolute;
width: 100%;
}

.arrow-down {
position: absolute;
bottom: 0;
margin: 1px -2px -1px;
}

我不明白为什么我的“.arrow-down”元素(一个 svg 白色形状)不在底部 0 位置。

这是一个屏幕截图:

enter image description here

它在其他主要浏览器中运行完美,甚至是 Microsoft Edge。

提前致谢

最佳答案

我终于找到了解决方案。似乎在 Internet Explorer 中,如果您使用 SVG 图像,您至少需要应用一个“宽度”。

关于css - IE11 忽略底部 0;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35549521/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com