CSS wrong appearance of border-radius on a nested div

后端 未结 6 1658
南方客
南方客 2020-12-01 22:39

Using the following HTML I need to:

  • Make sure that the border of target div (pink) is adjacent of the wrapper-target red border di

6条回答
  •  攒了一身酷
    2020-12-01 23:15

    You inherit the border-radius with a fixed value while the child element has other dimensions. Calculate the border in percent. Use border-radius:40%; on your wrapper.

提交回复
热议问题