CSS垂直置中完美實用執行個體,css置中執行個體

來源:互聯網
上載者:User

CSS垂直置中完美實用執行個體,css置中執行個體
<!DOCTYPE HTML>
          <html>
           <head>
            <meta meta charset="utf-8">
            <title>CSS垂直置中</title>
            <style type="text/css" media="all">
             body{color:black;background-color:white;padding:50px;font-size: 12px;line-height:16px;font-family:arial; color: #1E346E;}
             * {margin: 0;padding:0;border-width: 0;}
             .list{vertical-align: middle;width:640px;margin-bottom: 1px;border: solid 1px #00a0da;background-color:#F0F5FF; }
             .list:hover{background-color:#d9e7f5;}
             /*----------set vertical align middle----------*/
             .list p,.list b { vertical-align: middle;display: -moz-inline-stack;display:inline-block;zoom:1;*display:inline;}
             .list p { padding:10px;}
             /*----------set min-height----------*/
             .list b { height:52px;width:1px;overflow:hidden;margin-left:-1px;background-color:#009Cd0;}
            </style>
           </head>
           <body>
            <div class="list"><b> </b><p style="width:80px;">first class</p><p style="width:160px;">Can be modified</p><p style="width:160px;">Can be refunded.</p><p 


style="width:160px;">Can be endorsed</p></div>
            <div class="list"><b> </b><p style="width: 80px;">Economy class</p><p style="width:160px;">Can be modified</p><p style="width:160px;">Can be refunded.</p><p 


style="width:160px;">Can be endorsed</p></div>
            <div class="list"><b> </b><p style="width:80px;">23% off Economy class</p><p style="width:160px;">One free change permitted within same class if available; further 


changes charged 10% of fare. Passengers must go to CA ticketing office to process fee-based changes.</p><p style="width:160px;">10% of fare charged. </p><p 


style="width:160px;">Can not be endorsed</p></div>
            <div class="list"><b> </b><p style="width:80px;">-6% off Economy class</p><p style="width:160px;">Free change permitted within same class if available at least 4 days 


prior to departure.</p><p style="width:160px;">20% of fare charged (minimum CNY50 charge).</p><p style="width:160px;">Can not be endorsed</p></div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
           </body>
          </html>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.