Bootstrap 3: Using img-circle, how to get circle from non-square image?

前端 未结 8 1623
生来不讨喜
生来不讨喜 2021-01-31 16:16

I have rectangular, not necessarily square images.

Using Bootstrap\'s img-circle, I\'d like to get circular crops, <

8条回答
  •  情书的邮戳
    2021-01-31 16:26

    You have to give height and width to that image.

    eg. height : 200px and width : 200px also give border-radius:50%;

    to create circle you have to give equal height and width

    if you are using bootstrap then give height and width and img-circle class to img

提交回复
热议问题