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

为什么right里面分出来的子div “2”的颜色显示不出来?

为什么right里面分出来的子div “2”的颜色显示不出来?

慕粉4413064 2016-11-21 10:27:22
.top{height:100px;background:blue;}.main{width:800px;height:600px;background:#ccc;margin:0 auto;}.left{width:200px;height:600px;background:green;float:left;}.right{width:600px;height:600px;background:#CCC;float:right;}.1{width:200px;height:600px;background:yellow;float:left;}.2{right:400px;height:600px;background:blue;float:right;} </style></head><body><div class="top"></div><div class="main">  <div class="left">  </div>  <div class="right">    <div class="1"></div>    <div class="2"></div>  </div>
查看完整描述

3 回答

已采纳
?
stone310

TA贡献361条经验 获得超191个赞

不可以用数字作为开头命名

查看完整回答
反对 回复 2016-11-21
  • 3 回答
  • 0 关注
  • 1250 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信