[英]Border-radius on iframe not working on MAC (safari)
I am facing css problem. 我正面临CSS问题。 Border radius on is not working on mac book (Safari).. when i try on widows its working well..
当我尝试在寡妇上正常工作时,border radius on在Mac book(Safari)上不起作用。
Here is my html 这是我的html
<div class="map">
<div class="map-border">
<iframe width="295" height="295" src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d3160.515465008442!2d-122.40503609999998!3d37.6135611!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x808f77776e3c0101%3A0x78bd162ebe8e8904!2s1699+El+Camino+Real+%23201!5e0!3m2!1sen!2s!4v1403695117548">
</iframe>
</div>
Here is my css code. 这是我的CSS代码。
.map {
width: 315px;
height: 315px;
overflow: hidden;
position: relative;
border: 10px rgba(0, 0, 0, 0.1) solid;
-webkit-border-radius: 190px;
-moz-border-radius: 190px;
-ms-border-radius: 190px;
-o-border-radius: 190px;
border-radius: 190px;
-webkit-transition: all 0.4s ease-in;
-moz-transition: all 0.4s ease-in;
-o-transition: all 0.4s ease-in;
transition: all 0.4s ease-in;
z-index: 10;
}
.map .map-border {
position: absolute;
overflow: hidden;
height: 295px;
border: 10px white solid;
-webkit-border-radius: 190px;
-moz-border-radius: 190px;
-ms-border-radius: 190px;
-o-border-radius: 190px;
border-radius: 190px;
overflow: hidden;
z-index: -10;
position: relative;
overflow-x: hidden;
overflow-y: hidden;
}
iframe {
-webkit-border-radius: 190px;
-moz-border-radius: 190px;
-ms-border-radius: 190px;
-o-border-radius: 190px;
border-radius: 190px;
border: 0;
display: block;
}
Here is the live code. 这是实时代码。 http://jsfiddle.net/adnan00733/ju9zL9um/ Note : On windows it will look well.
http://jsfiddle.net/adnan00733/ju9zL9um/注意:在Windows上看起来会很好。 But unfortunately its not working on MAC..
但不幸的是,它不适用于MAC。
PLEASE HELP. 请帮忙。 Thanks in advance.
提前致谢。
Ok the best solution I could come up with is: 好的,我能想到的最佳解决方案是:
(I can cut the image into pieces for you if you want) (如果需要,我可以将图像切成碎片)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.