How to give a div oval shape?

前端 未结 5 906
粉色の甜心
粉色の甜心 2020-12-03 18:17

I tried a lot on oval shape which have cut in both sides but not able to do it please \"enter<

5条回答
  •  情歌与酒
    2020-12-03 18:46

    Put it inside another div which is high enough to show all the oval, not quite wide enough, and set overflow: hidden. If it's positioned at the centre the edges will be cut off, but you won't be able to side-scroll.

提交回复
热议问题