margin_top:40px。是代表上右下左(按顺时针)边距为40。Margin:包括margin-top,margin-right,margin-bottom,margin-left,控制块级元素之间的咐耐逗距离,它们是透明不可见的,对于Fig.2所示的上右下左margin值均为40px,因此代码为:margin-top:40px。margin-right:40px。margin-bottom:40px。margin-left:40px。根据上,右,下,左的顺时针规则,简写为margin:40px40px40px40px。当上下衡卖,左右margin值分别一致,可简写为:margin:40px40px。前一个40px代表上下margin值,后一个40px代表左右margin值.当上下左右margin值均一致,可简写为:亩消margin:40px。
margin-top
上边距;上边距属性;顶端边距
例句
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.
形式:单枚新票,带上边纸。
padding-top:10px;是指容器内的内容距离容器的顶部有10个像素,是包含在容器内的;
margin-top:10px;是指容器本身的顶部距离其他容器有10个像素,不包含在容器内;
top:10px;是指容器本身的顶部距离页面的顶端有10个像素。
margin-top 离上一级元素的高度 top离页面顶端的距离
top 是设置或获取某控件在页面上的top属性.就是控件在页面上的top坐标.
margin-top 是某控件的上边缘与其它控件间隔的.
margin-top 属性设置元素的上外边距
当css样式为绝对定位(position:absolute; )时top 属性可以指定与其最近一个具有定位设置的父对象顶边的位置
以上就是土嘎嘎小编大虾米为大家整理的margintop和top的区别_margintop不起作用相关主题介绍,如果您觉得小编更新的文章对您有所帮助,不要忘记讲本站分享给您身边的朋友哦!!