CSS样式里的padding和margin是什么意思,有何作用
margin是外间距,不计算在元素长宽里面。padding是内间距,算在元素的长宽里面的。
div的margin-top
按照你的设置确实应该出现的效果是chrome中的,不要太相信DW中的设计效果,有些细微的设置在DW中根本无法体现出来
margintop和top的区别
margin-top 属性设置元素的上外边距 top 属性可以指定与其最近一个具有定位设置的父对象顶边的位置
body{margin-top:50%;}怎么解释。多谢了
不要用这种不规范的用法,在不同浏览器显示效果是不一样的。margin-top用象素数定义,如果要达到你的要求的话请使用js在页面调入时重设属性。
上边距;上边距属性;顶端边距
例句
1.When printing lists, contains the number of lines on the top margin.
在打印清单时,包含了顶端空白的行数。
2.Under Spacing, type in the values you want for Side Margin, Top Margin, Horizontal Gap, and Vertical Gap.
在"间距"下,键入"侧边距"、"上边距"、"水平跨度"和"垂直跨度"的值。
3.When you open a document, is the insertion point at the top left corner of the page, as if there were no top margin?
打开文档时,插入点是否在页面的左上角,就好像没有上边距?
4.A gutter margin setting adds extra space to the side margin or top margin of a document that you plan to bind .
装订线边距设置将为要装订的文档两侧或顶部边距添加额外的空间。
5.Form: Mint, single, with top margin.
形式:单枚新票,带上边纸。
CSS里border-top和margin-top什么意思?
border-top 是顶部边框~~
margin-top 是顶部空白的宽度~~
这个margin属性到底是什么意思啊?为什么会出现下面的图
margin是页边空白
比如说你有一个div,margin是div边框的外面空白部分,padding是div边框里面的补白。
由于各个浏览器的解释不同,margin-top这个属性很容易发生失效现象,我虽然看不到你的图,但是猜想可能是你的margin-top属性失效了,你可以本站上搜一下,比我讲解清楚
以上就是土嘎嘎小编大虾米为大家整理的margin-top属性的含义相关主题介绍,如果您觉得小编更新的文章对您有所帮助,不要忘记讲本站分享给您身边的朋友哦!!