课程
/前端开发
/HTML/CSS
/固定层效果
为何改的margin-top:63px;而非margin:63px auto 0px;
2015-07-06
源自:固定层效果 2-3
正在回答
你页面上有8个input标签,不管input标签是什么类型,也就是你type中不管写什么,那也是input标签,所以会出现8
cwfshxmgvuzhcdkhrompiwevmmo
margin-top:63px;只是设置了距上边距63px;
margin:63px auto 0px;的意思是距上边距63px,下边距0px,左右中间居中。
梦身 提问者
辰小洋 回复 梦身 提问者
举报
运用属性值就轻松实现网页固定层效果