【发布时间】:2020-10-10 05:45:36
【问题描述】:
我有以下带有 CSS 的 HTML
.image_with_loader_container {
position: relative;
width: 100%;
padding-bottom: 139.34426%;
background: #dbdbdb;
}
.image_with_loader_container img {
border-radius: 4.75%/3.5%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
<div class="image_with_loader_container">
<img src="..." />
</div>
在这个video (Chrome 83) 中,您可以看到边界半径不能很好地工作。您可以通过https://mtgprint.cardtrader.com 实时查看此行为。
有解决这个问题的办法吗?
【问题讨论】:
-
为什么您的
.image_with_loader_container中需要background: #dbdbdb;?尝试不使用它
标签: css border-radius