css - 使用 CSS 在 <span> 标签中划线

标签 css line

这条线有问题:

This line

如何在标签 <span> 中执行这一行用 CSS?

你能帮帮我吗?

最佳答案

试试这个:

http://codepen.io/anon/pen/obJEmE

   <span class="with-line">
     <span class="with-line-left-border"> </span>
   </span>

body {
  padding: 0;
  background-color: #1e88e5;
}

.with-line {
  position: relative;
  display: block;
  width: 200px;
  height: 3px;
  background-color: #fff;
  margin: auto;
  top: 220px;
}

.with-line .with-line-left-border {
  width: 3px;
  height: 25px;
  background-color: #fff;
  float: left;
  bottom: 10px;
  vertical-align: middle;
  position: relative;
}

我不确定你是否想要这个,下次再解释你的问题。

问候。

关于css - 使用 CSS 在 <span> 标签中划线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35326610/

相关文章:

css - Bootstrap 网格在本地没问题,但在服务器上坏了

html - float 导航栏下方的页面内容

Javascript 更改样式表中的值

r - 年度比较时间序列ggplot2 R

c++ - 如何计算两条线的交点

python - 如何格式化列表以在 python 的单独行上打印每个元素?

css - iPad iWebkit css 问题(表单域)

css - 如何设置CSS网格显示未知数量的动态数据

ruby-on-rails - Eclipse(Aptana插件)源代码行边框

algorithm - 如何将一组线像素化为矩阵