zoukankan      html  css  js  c++  java
  • 关于CSS设计三列式界面代码!喜喜工作室

    在网上看到某仁兄关于这个问题讨论了下,所以 利用业余时间写写这个,用来学习下CSS.很简单的运用例子。

    <html>
    <head>
    <title>用CSS设计的三列式布局--喜喜设计</title>
    <style type="text/css">

    *{margin:0;padding:0;font-size:1em;}
    #header{1002px;height:100px;margin:0 auto; background:#06f;}
    #divall {1002px;height:400px; margin:0 auto; background:#fff;}
    #sider_a {220px;height:400px; float:left; background:#f93;}
    #main {580px; height:400px; float:left; margin-left:6px; background:#dceafc;}
    #sider_b {190px; height:400px; float:right; background:#ccc;}
    #footer {clear:bothl; 1002px; height:60px; margin:0 auto; background:#999;}


    #header h1{color:#fff;font-size:2em;font-family:Arial;position:relative;top:20px;left:20px;}
    #header h2{color:#fff;font-size:1em;position:relative;top:30px;left:80px;}
    #divall p{color:#000;font-size:1em;text-indent:2em;line-height:2em;margin:10px 5px;}
    #fonter p{color:#fff;font-size:2em;line-height:60px;text-align:center;}
    #fonter p a{color:#fff;}
    </style>
    </head>
    <body>
    <div id="header">
    <h1>喜喜工作室-----</h1>
    <h2>希望自己能学更多的东西然后为我们西部做点贡献~~</h2>
    </div>
    <div id="divall">
    <div id="sider_a">
    <font size=6>A版面</font>
    </div>
    <div id="main">
    <p>
    <font size=6>B版面</font>
    喜喜工作室 关于CSS设计三列式布局。
    <br>
    学习之余 关于学习。
    </p>
    </div>
    <div id="sider_b">
    <font size=6>C版面</font>
    </div>
    <br style="clear:both;"/>
    </div>
    <div id="footer" align="center">
    <p>
    <a href="http://happyprince.cnblogs.com/">喜喜工作blog 版权所有</a>
    <br>
    希望可以多多交流!QQ:313315714
    </br>
    </p>
    </div>
    </body>
    </html>


     

  • 相关阅读:
    array and ram
    char as int
    pointer of 2d array and address
    Install SAP HANA EXPRESS on Google Cloud Platform
    Ubuntu remount hard drive
    Compile OpenSSL with Visual Studio 2019
    Install Jupyter notebook and tensorflow on Ubuntu 18.04
    Build OpenCV text(OCR) module on windows with Visual Studio 2019
    Reinstall VirtualBox 6.0 on Ubuntu 18.04
    Pitfall in std::vector<cv::Mat>
  • 原文地址:https://www.cnblogs.com/HappyPrince/p/1016888.html
Copyright © 2011-2022 走看看