うわー、ここの人々は速すぎますが、念のためにコードを投稿します。ここに2つの可能な解決策があります.1つ目はより良いものです(他の投稿が示しているように):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style media="all">
ul {list-style: none; margin: 0; padding: 0;}
.activity-date-grouping span {
font-weight: bold;
font-size: 1.3em;
color: #911c51;
position: relative;
}
.activity-date-grouping span:after {
content: "";
position: absolute;
left: 105%;
bottom: 0.2em;
width: 999em;
border-bottom:1px dashed #911c51;
}
</style>
</head>
<body>
<ul>
<li class="activity-date-grouping">
<span>4 Apr 2013</span>
</li>
<ul>
</body>
</html>
そして他の:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style media="all">
ul {list-style: none;}
.activity-date-grouping {
border-bottom:1px dashed #911c51;
}
.activity-date-grouping span {
font-weight: bold;
font-size: 1.3em;
color: #911c51;
display: inline-block;
background: white;
margin-bottom: -1px;
}
</style>
</head>
<body>
<ul>
<li class="activity-date-grouping">
<span>4 Apr 2013</span>
</li>
<ul>
</body>
</html>