在html中设置margin,他们两者的效果一样吗?区别在那里?
是一样的,margin:0; 代表margin: 0 0 0 0;即上右下左分别为0
左右 会出现margin重叠吗?
IE6下特有的产物,double margin BUG,IE7以上没有此问题,解决方法: 可以的话,使用来解决。 margin:15px !important;/*IE7 or FF*/ margin:7px;/*IE6*/
margin-top,margin-right,margin-bottom,margin-left具体含义?
就是你的body或者TABLE离上一层的距离。margin_top:0px;放在BODY的样式里就是离浏览器的上边距0px,放TABLE里就是离上一层的上边距为0PX;满意给分。-!
css中,"margin:0 auto"和margin-top是冲突的吗?
margin:0 auto;
其实就是margin-top:0; margin-right:auto;margin-botto:0;margin-left:auto;
margin:0 auto; 和margin-top同时声明的时候
相当于声明了2次margin-top。。在后面的那次会生效
padding-top,margin-top和top的区别
padding-top:10px;是指容器内的内容距离容器的顶部有10个像素,是包含在容器内的;
margin-top:10px;是指容器本身的顶部距离其他容器有10个像素,不包含在容器内。
margin-top是什么意思
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.
形式:单枚新票,带上边纸。
css中关于margin-top为负值,为什么没有上移。
原则上,行内元素(inline)是不能够设置宽高(width/height)、上下内边距(padding-top/padding-bottom)和上下外边距(margin-top/margin-bottom),因为同一行的所有行内元素在纵向的位置是一个整体,设置其中某个元素的上下边距,则整行都会跟随变化,当超出边框范围时(比如margin-top设为负值)则无效(除非行内的所有元素都设为同样的数值)。
当然,行内块级元素(inline-block)是可以设置宽高(width/height)的,但在上下边距的问题上仍然遵循行内元素的原则。