沒搞懂的一段css

來源:互聯網
上載者:User
.left{    width:100px;    height:100px;    background-color:#eeeeee;    border:1px solid green;    float:left;}.right{    width:100px;    height:100px;    background-color:#aaaaaa;    border:1px solid red;    float:right;}#b{    width:100px;    height:100px;    background-color:#555555;    border:1px solid pink;    //float:left;    //clear:left;}
<html><head><meta charset="utf-8"><link type="text/css" rel="stylesheet" href="tmp.css"></head><body><div class="left">A</div><div class="left">B</div><div class="right">C</div><div id="b">X</div></body></html>

 

還沒有懂。記下來以後再解釋吧。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.