zoukankan      html  css  js  c++  java
  • 静态页面复习--CSS练习

    <!DOCTYPE html>
    <html>
      <head>
        <meta charset="utf-8">
        <title></title>
        <style type="text/css">
          .one{
            background-color: #9cbfcc;
            border-radius: 5px;
            padding-top: 56px;
            padding-left: 58px;
            width: 230px;
            height: 290px;
            box-sizing: border-box;
            color:#ffffff;
            margin-right: 15px;
            float: left;
          }
          .two{
            background-color: #6bb790;
            border-radius: 5px;
            padding-top: 56px;
            padding-left: 58px;
            width: 230px;
            height: 290px;
            box-sizing: border-box;
            color:#ffffff;
            margin-right: 15px;
            float: left;
          }
          .three{
            background-color: #f5b227;
            border-radius: 5px;
            padding-top: 56px;
            padding-left: 58px;
            width: 230px;
            height: 290px;
            box-sizing: border-box;
            color:#ffffff;
            margin-right: 15px;
            float: left;
          }
        </style>
      </head>
      <body>
        <div class="one">
          <img src="img/gmail.png" width="116px;" alt="" />
          <p>
            Efficient and useful.
          </p>
        </div>
        <div class="two">
          <img src="img/news.png" width="116px;" alt="" />
         <p>
           Find your favorite.
         </p>
        </div>
        <div class="three">
          <img src="img/map.png" width="116px;" alt="" />
          <p>
            Better than Baidu.
          </p>
        </div>
      </body>
    </html>

    新学到的样式:

    box-sizing:border-box 自动计算,固定总长宽

    float:left 向左浮动

  • 相关阅读:
    【math】共线性的影响分析
    【colab】挂载google网盘
    【ML】非均衡样本处理
    phpwind < v6 版本命令执行漏洞
    Uc爆破工具
    shodan:黑客搜索引擎
    webshell下执行命令脚本汇集
    Android利用Fiddler进行网络数据抓包
    150个在线代理站点
    PHP filesystem attack vectors
  • 原文地址:https://www.cnblogs.com/xyxpython/p/6169799.html
Copyright © 2011-2022 走看看