css 单价红色横杠
时间: 2023-10-20 21:34:11 浏览: 125
css实现可控虚线的方法
5星 · 资源好评率100%
在CSS中,可以使用border-top属性来创建红色横杠。在给定的代码示例中,可以看到.title类的:before和:after伪元素均设置了border-top属性,并且颜色值为#e1767c,即红色。这样就实现了在标题两边添加红色横杠的效果。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [菜单栏 “三” 变形为“X”css3过渡动画](https://download.csdn.net/download/weixin_38590790/12891491)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [用css方法,给标题两边加小横杠](https://blog.csdn.net/u011200562/article/details/105180397)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文