Border Corners: Triangle

前端 未结 3 1714
不知归路
不知归路 2021-01-20 04:44

Is it possible to get rid of the \"triangle\" shape in the border corners? (when using different color borders)

See this example:

http://jsfiddle.net/GLsqV/

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-20 05:19

    That's how borders work. How would the browser decide which ones overlap the corners otherwise?

    You can achieve this effect using a nested DIV, or using a trick with :before and :after with some absolute positioning.

提交回复
热议问题