使用比元素尺寸更大的border-radius
是否存在问题?
例如,如果我想这样创建一个类:.circle
:
.circle {
-webkit-border-radius: 1000px;
-moz-border-radius: 1000px;
border-radius: 1000px;
}
现在我可以将这个类应用于任何元素,使其成为一个圆形,就像这样:
<img width="80" height="80" alt="My Gravatar" class="circle" src="https://www.gravatar.com/avatar/b262eb4b3bf006cf68ef60eae63ddffc">
我知道目前为止我还没有遇到任何问题,但是我是不是在为将来更多的问题埋下伏笔?