希望有幫助~
<html>
<head>
<style>
.wordUL{}
.wordUL li{border-bottom:dotted 2px #333;}
.DB{display:inline-block;}
.FL{float:left;}
.FR{float:right;}
.noBB{border-bottom:solid 2px #fff;}
</style>
</head>
<body>
<ul class="wordUL">
<li>
<span class="DB FL noBB">1. ABC</span>
<span class="DB FR noBB">Page01~20</span>
</li>
<li>
<span class="DB FL noBB">2. CDE</span>
<span class="DB FR noBB">Page21~30</span>
</li>
<li>
<span class="DB FL noBB">3. FGH</span>
<span class="DB FR noBB">Page31~40</span>
</li>
</ul>
</body>
</html>
<html>
<head>
<title>測試一下啦!!!!</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.word_ol li{
border-bottom-color: #000;
border-bottom-style: dotted;
border-bottom-width: 1px;
position: relative;
width: 500px;
padding: 5px 0px;
}
.word_ol div{/*在此調整字體大小跟對應位置*/
top: 0px;
font-size: 18px;
padding-bottom: 5px;
}
.word_ol .title_name{
position: absolute;
background-color: #fff;
margin-top: 5px;
}
.word_ol .page_box{
position: absolute;
right: 0px;
background-color: #fff;
padding: 5px;
}
</style>
</head>
<body>
<ol class="word_ol">
<li><div class="title_name">tttttttttttt</div><div class="page_box">.20</div></li>
<li><div class="title_name">taaaat</div><div class="page_box">.20</div></li>
<li><div class="title_name">ttwwwwwttt</div><div class="page_box">.20</div></li>
<li><div class="title_name">fffggh</div><div class="page_box">.20</div></li>
<li><div class="title_name">s35567</div><div class="page_box">.page20~40</div></li>
</ol>
</body>
</html>
另外一種做法也給你參考。這是用色塊蓋住的方法處理的。