简体   繁体   English

Chrome-包含div的CSS中有圆角,但不呈现为圆角

[英]Chrome - containing div has rounded corners in CSS, but not rendering as rounded

I have this as my rule for rounded: 我将此作为四舍五入的规则:

.rounded { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }

On my site I'm working on, http://urlme.cc/movies6 , if you view it in Chrome, each movie div has the class "rounded", but, the div has straight edges. 在我正在工作的网站http://urlme.cc/movies6上 ,如果您在Chrome中查看它,则每个电影div的类别均为“圆角”,但是div的边缘为直角。

In Firefox, it's rounding correctly. 在Firefox中,它正确舍入。 Please see image comparison below. 请参阅下面的图像比较。

You can view source / inspect elements on the above link, but, the html looks basically like this: 您可以在上面的链接上查看source / inspect元素,但是html基本上如下所示:

<div class="movie rounded">
  <a href="#"><img src="..." /></a>
  <div class="details">1 hr, 20 min</div>
</div>

Chrome与Firefox圆角比较

Question : any reason why Chrome is not rounding those div.movie corners, while Firefox is? 问题 :Chrome为何没有将div.movi​​e的角落弄死,而Firefox是什么原因? Thanks! 谢谢!

脱颖而出position:relative对于.movi​​e ,Chrome开发者工具似乎做到了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM