CSS中怎么使用margin-bottom属性

2023-05-25,

这篇文章主要介绍了CSS中怎么使用margin-bottom属性的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇CSS中怎么使用margin-bottom属性文章都会有所收获,下面我们一起来看看吧。

CSS margin-bottom 属性

定义和用法

margin-bottom 属性设置元素的下外边距。

注释:允许使用负值。

实例

设置 p 元素的下外边距:

p    {    margin-bottom:2cm;    }

浏览器支持

所有主流浏览器都支持 margin-bottom 属性。

注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inherit"。

可能的值

关于“CSS中怎么使用margin-bottom属性”这篇文章的内容就介绍到这里,感谢各位的阅读!相信大家对“CSS中怎么使用margin-bottom属性”知识都有一定的了解,大家如果还想学习更多知识,欢迎关注本站行业资讯频道。

《CSS中怎么使用margin-bottom属性.doc》

下载本文的Word格式文档,以方便收藏与打印。