Border line next to text

后端 未结 5 698
予麋鹿
予麋鹿 2021-01-22 12:00

I have a p tag. I want a border line next to it.

Categories

5条回答
  •  既然无缘
    2021-01-22 12:52

    JS Fiddle

    p {
        font-size: 12px;
        margin-bottom: 2px;
        position:relative
    }
    p::after {
        content:"";
        border-bottom:1px solid grey;
        width:100px;
        position:absolute;
        bottom:2px;
    }
    

提交回复
热议问题