本文實(shí)例講述了CSS數(shù)字列表實(shí)現(xiàn)方法。分享給大家供大家參考。具體分析如下:
這是另類的CSS列表標(biāo)號技巧示例,實(shí)際上純粹的這種效果沒有什么實(shí)用價值,不過如果你將標(biāo)號改為圖片就大大有用了,呵,這也就成了很多網(wǎng)站都在用的圖文導(dǎo)航,可以作為首頁每個欄目的導(dǎo)航,有圖片,有文字,整齊美觀。
復(fù)制代碼代碼如下:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>CSS列表的使用</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<style>
* {
margin: 0;
padding: 0;
}
body {
font-size: 12px;
font-family: Helvetica, sans-serif;
}
h2 {
font-size: 1.7em;
margin-bottom: 5px;
}
h2.number {
position: relative;
top: 0px;
left: 0px;
font-size: 10em;
color: #ccc;
float: left;
margin-right: 10px
}
#page-wrap {
width: 760px;
background: white;
margin: 0 auto;
padding: 10px 0px 50px 0px;
}
.comment-box {
margin: 0px 0px 50px 50px;
padding: 20px;
width: 240px;
border: 1px solid black;
float: left;
}
</style>
</head>
<body>
<div id=”page-wrap”>
<div class=”comment-box”>
<h2 class=”number”>1</h2>
<p> 在松下1121票據(jù)打印機(jī)上測試并通過,直接在左側(cè)輸入打印內(nèi)置命令,
然后點(diǎn)擊“打穎就會執(zhí)行打印動作。同時它還能執(zhí)行簡單的腳本命令,
這樣你可以控制打印時在指定字符處換行或輸出其它字符的功能。。</p>
</div>
<div class=”comment-box”>
<h2 class=”number”>2</h2>
<p> 銀行業(yè)務(wù)單據(jù)、支票打印系統(tǒng)Delphi控件版,用了FASTREPORT控件,
還有幾個自己寫的函數(shù),現(xiàn)在奉獻(xiàn)給大家,肯定指導(dǎo),
研究本程序?qū)W(xué)習(xí)Delphi打印功能的編寫很有幫助哦。</p>
</div>
<div style=”clear: both;”></div>
</div>
</body>
</html>
希望本文所述對大家的div+css網(wǎng)頁設(shè)計有所幫助。
新聞熱點(diǎn)
疑難解答
圖片精選