12.03.12总结

    今天学到的东西:

                                 1、初步学会了给网页怎么排版的问题;

                                 2、学会运用float标签,并且运用float标签自己写了一个九宫格(附带代码)

                                          html:

    <div class="content"
         <div class="top">

          <div class="top1 con_float"></div>

         <div class="top2 con_float""></div>

         <div class="top3 con_float""></div>

     </div>

     <div class="middle">

          <div class="mid1 con_float"></div>

          <div class="mid2 con_float"></div>

          <div class="mid3 con_float"></div>

</div>

     <div class="bottom">

         <div class="bot1 con_float"></div>

         <div class="bot2 con_float"></div>

         <div class="bot3 con_float"></div>

     </div>

</div>
       CSS编码:
.content{width:500px; height:500px; margin:0px auto auto;}
.top{width:350px; height:100px; border:opx solid #FF0000;}/*top sta*/
.con_float{float:left;}
.top1{width:100px; height:100px; border:1px solid #000; background-color:#FF0000;}
.top2{width:100px; height:100px; border:1px solid #000; background-color:#0000FF; margin-left:15px;}
.top3{width:100px; height:100px; border:1px solid #000; background-color:#FFFF00;margin-left:15px;}
/*top end*/
.middle{width:350px; height:100px; border:0px solid #000; margin-top:10px;}/*mid sta*/
.con_float{float:left;}
.mid1{width:100px; height:100px; border:1px solid #000; background-color:#FF0000;}
.mid2{width:100px; height:100px; border:1px solid #000; background-color:#0000FF; margin-left:15px;}
.mid3{width:100px; height:100px; border:1px solid #000; background-color:#FFFF00;margin-left:15px;}
/*mid end*/
/*bot sta*/
.bottom{width:350px; height:100px; border:0px solid #0000FF; margin-top:10px;}
.con_float{float:left;}
.bot1{width:100px; height:100px; border:1px solid #000; background-color:#FF0000;}
.bot2{width:100px; height:100px; border:1px solid #000; background-color:#0000FF; margin-left:15px;}
.bot3{width:100px; height:100px; border:1px solid #000; background-color:#FFFF00;margin-left:15px;}
/*bot end*/
               这是自己独立完成的一个九宫格的用html文档写出来。

3、学会了用html写一条直线,主要就是运用了一个<div>模块,在用css表现的时候,用的bodder_bottom.
  css编码:   .line1{width:100px; height:2px; border-bottom:1px solid #000; margin-top:-8px; margin-left:10px;}
4、大体的知道<DIV>模块运用;
5、IE FF  之间兼容的问题, 还不是很了解,这个有带加强!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值