vertical-align_CSS參考手冊_web前端開發參考手冊系列

來源:互聯網
上載者:User

標籤:對象   lin   head   內容   tom   charset   height   oct   text   

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>vertical-align_CSS參考手冊_web前端開發參考手冊系列</title>
<style>
.test p{border:1px solid #000;font-size:16px;line-height:2;}
.test a{margin-left:5px;font-size:12px;}
.baseline a{vertical-align:baseline;}
.sub a{vertical-align:sub;}
.super a{vertical-align:super;}
.top a{vertical-align:top;}
.text-top a{vertical-align:text-top;}
.middle a{vertical-align:middle;}
.bottom a{vertical-align:bottom;}
.text-bottom a{vertical-align:text-bottom;}
.length a{vertical-align:10px;}
</style>
</head>
<body>
<ul class="test">
<li class="baseline">
<strong>與基準對齊</strong>
<p>參考內容<a href="?">基準對齊</a></p>
</li>
<li class="sub">
<strong>與參考內容的下標對齊</strong>
<p>參考內容<a href="?">下標對齊</a></p>
</li>
<li class="super">
<strong>與參考內容的上標對齊</strong>
<p>參考內容<a href="?">上標對齊</a></p>
</li>
<li class="top">
<strong>對象的內容與對象頂端對齊</strong>
<p>參考內容<a href="?">要對齊的內容</a></p>
</li>
<li class="text-top">
<strong>對象的文本與對象頂端對齊</strong>
<p>參考內容<a href="?">要對齊的內容</a></p>
</li>
<li class="middle">
<strong>對象的內容與對象中部對齊</strong>
<p>參考內容<a href="?">要對齊的內容</a></p>
</li>
<li class="bottom">
<strong>對象的內容與對象底端對齊</strong>
<p>參考內容<a href="?">要對齊的內容</a></p>
</li>
<li class="text-bottom">
<strong>對象的文本與對象頂端對齊</strong>
<p>參考內容<a href="?">要對齊的內容</a></p>
</li>
<li class="length">
<strong>與基準算起的位移量</strong>
<p>參考內容<a href="?">位移量對齊</a></p>
</li>
</ul>
</body>
</html>

vertical-align_CSS參考手冊_web前端開發參考手冊系列

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.