1、padding不能为负值,margin可以。
2、背景色会平铺到非margin区域。
背景色会平铺到content、padding、border部分。
3、marked在Flexbox或网格布局中,不存在margin-top、bottom叠加及margin-top传递现象。
实例
1 2 3 4 5 6 7 8 9 10 11 12 |
|
以上就是css中盒模型的注意点,希望对大家有所帮助。更多css学习指路:css教程
本文教程操作环境:windows7系统、css3版,DELL G3电脑。
1、padding不能为负值,margin可以。
2、背景色会平铺到非margin区域。
背景色会平铺到content、padding、border部分。
3、marked在Flexbox或网格布局中,不存在margin-top、bottom叠加及margin-top传递现象。
实例
1 2 3 4 5 6 7 8 9 10 11 12 |
|
以上就是css中盒模型的注意点,希望对大家有所帮助。更多css学习指路:css教程
本文教程操作环境:windows7系统、css3版,DELL G3电脑。
© 2021 Python学习网 苏ICP备2021003149号-1