我试图弄清楚如何在不添加
段落的情况下使每行的下划线/边框全宽。有谁知道我该如何处理?
到目前为止,我有两个解决方案是添加或创建其图像,但这不是理想的情况。
任何帮助表示赞赏,谢谢。
的HTML
<p>We are always on the lookout for great talent. Please send in your resume or portfolio to [email protected]. The following positions are open.</p>
的CSS
p {
border-top: thin soild #000;
}
如果线高是固定的,则可以使用渐变来完成:
p{
line-height: 20px;
color: #333;
background-image:
repeating-linear-gradient(180deg, transparent, transparent 19px, #333 20px);
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句