How to use only CSS to round my div tag area's corners?

后端 未结 6 1379
感情败类
感情败类 2021-02-01 10:24

I use div tags to define areas within my web pages. I set all the obvious things like background, size, padding, etc. But it is all very square.

How can I use

6条回答
  •  梦谈多话
    2021-02-01 11:01

    You would use the border-radius property. However, this is only supported in CSS3, which no browser implements yet. If you only need it to work in a couple browsers you could use -webkit-border-radius and -moz-border-radius which would let it work in Safari and Firefox respectively.

    If you are not opposed to using images. Here's s method I came up with for making rounded borders.

提交回复
热议问题