#html
<div class="relative">
<span>简介</span>
<hr>
</div>
#css
hr{
position: absolute;
width: 80%;
float: right;
height: 5px;
background: #555;
border: 0;
border-top: 1px solid #ccc;
top: 10%;
left: 20%
}
@media screen and (max-width: 1200px) {
hr{
width: 65%;
left: 35%
}
}
@media screen and (max-width: 768px) {
hr{
width: 45%;
left: 55%
}
}