Making all photos square via css

后端 未结 6 2101
忘掉有多难
忘掉有多难 2021-02-07 06:50

I\'m trying to make a series of photos into square photos. They may be rectangular horizontally (i.e. 600x400) or vertically (400x600), but I want to get them to be 175x175 eit

6条回答
  •  無奈伤痛
    2021-02-07 07:15

    This might help.

    CSS:

    .image{
    -moz-border-radius: 30px; /* FF1+ */
    -webkit-border-radius: 30px; /* Saf3-4 */
    border-radius: 30px; /* Opera 10.5, IE 9, Saf5, Chrome */
    }
    

    HTML:

    This worked for me. Just put the URL to the image inside the div.

提交回复
热议问题