为了账号安全,请及时绑定邮箱和手机立即绑定

按照课程里讲的来写,怎么显示不对,在content里面加上right:0也显示不正确??

#mainbody {
	     width:100%;
	     【任务1】position:relative;
	     margin-top:20px;
}
#sidebar {
	width:180px;
	padding-bottom:10px;
}
#sidebar dl {
	padding:0 0 5px;
}
#sidebar dt {
	font-weight:bold;
	line-height:22px;
	font-family:"微软雅黑";
	font-size:14px;
	color:#fff;
	background:#3399cc;
	padding:5px 0 5px 15px;
	font-weight:normal;
	margin-bottom:10px;
}
#sidebar dd {
	line-height:20px;
	padding-left:15px;
}
#sidebar dd.current a {
	color:#f00;
}
#content {
            position:absolute;
            margin-left:200px;
            top:0;
}

按照课程里讲的,怎么显示不对

正在回答

1 回答

【任务1】position:relative; 你第三行代码 有中文没删除。删除就可以了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
网页布局基础
  • 参与学习       214672    人
  • 解答问题       1833    个

让你精通CSS中三大定位机制,彻底掌握网页布局的相关知识

进入课程

按照课程里讲的来写,怎么显示不对,在content里面加上right:0也显示不正确??

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号