Is this possible? I want an image to be a perfect circle no matter if the image is not a perfect square ie: 100px x 100px
.
.circle {
border-radius: 50%;
height: 100px;
width: 100px;
}
With that code, if the image is 200x150, the img
tag would be in the shape of an oval. Could I get a perfect circle no matter the image size?
<img class="circle" src="/link/to/img.jpg" height="80" width="80" />
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…