gpt4 book ai didi

html - 带有百分比的 chrome 中的 css 边框半径错误

转载 作者:太空宇宙 更新时间:2023-11-03 20:59:06 26 4
gpt4 key购买 nike

您好,我在 Chrome 中遇到了问题。我认为这可能是一个错误,但我找不到太多关于它的信息。基本上我想在图像上应用边框半径。 border-radius 将是 50% 形成一个圆。我将其设置为 % 的原因是因为我不会明确知道图像的宽度/高度。

知道为什么 chrome 不正确显示边框吗?我还没有在 FF < 4 中测试过。但是 FF4 和 IE 一样运行良好

最佳答案

你想做什么?你想让一个圆圈出现在图像后面吗?这就是我在 FF 中看到的。在 Chrome 中,圆圈会剪裁图像的边缘。

根据规范 -- http://www.w3.org/TR/css3-background/#corner-clipping -- 内容应该被截断。

The content of replaced elements is always trimmed to the content edge curve.

对我来说,这意味着 Chrome 在这方面正确地遵循了规范。

关于html - 带有百分比的 chrome 中的 css 边框半径错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6202115/

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