gpt4 book ai didi

safari - 边界半径不适用于 safari

转载 作者:行者123 更新时间:2023-11-28 18:09:09 27 4
gpt4 key购买 nike

所以我用拇指和周围的白色边框制作了这个圆圈。一切都在每个浏览器中都能找到,除了 safari,它不会按应有的方式呈现白色边框。那我怎样才能让它工作呢?

示例 http://jsfiddle.net/vTBeC/2/

谢谢大家;)

HTML 标记

<div class="author-thumb"><img class="circle-thumb" src="http://s11.postimg.org/gst5lw9pb/testimonial_1.jpg" alt="" width="80" height="80" /> </div>

CSS 标记

.author-thumb {
float: none;
position: absolute;
left: 50%;
top: -42px;
margin-left: -37px;
margin-top: 100px;
z-index: 1;
}
.author-thumb:after, .author-thumb:before {
top: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.author-thumb:after {
border-color: rgba(250, 250, 250, 0);
border-top-color: #fafafa;
border-width: 7px;
left: 50%;
margin-left: -7px;
}
.author-thumb:before {
border-color: rgba(222, 222, 222, 0);
border-top-color: #dedede;
border-width: 8px;
left: 50%;
margin-left: -8px;
}
.circle-thumb {
width: 75px;
height: 75px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
border: 3px solid #fff;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

最佳答案

使用这个 fiddle 就可以了:

http://jsfiddle.net/vTBeC/4/

CSS:

.author-thumb {
padding: 4px;
width: 80px;
height: 80px;
background: white;
border-radius: 100%;
-moz-border-radius: 100%;
overflow: hidden;
display: inline-block;
border: solid 1px #ccc;
vertical-align: bottom;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}
.circle-thumb {
border-radius: 100%;
-moz-border-radius: 100%;
}

关于safari - 边界半径不适用于 safari,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19067388/

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