Is css box-shadow part of element's box model?

后端 未结 2 1014
谎友^
谎友^ 2020-12-11 16:35

Is box-shadow part of box? width of shadow will be included in total width of Block element?

2条回答
  •  伪装坚强ぢ
    2020-12-11 17:02

    According to box-shadow: shadow effect on elements in css3, no.

    box-shadow applies to the outside of the box model unless you specify "inset".

提交回复
热议问题