html - 知道如何在 css 中执行此操作吗?

标签 html css

知道如何使用 css 做到这一点吗?

Any idea how to do this using css

我正在寻找一种好的、清晰的方法来做到这一点。

最佳答案

HTML

<div class="line"></div>
<span>OR</span>
<div class="line"></div>​

CSS

div.line
{
width:1px;
background-color:Gray;
height:40px;
margin:10px;
}

span
{
font-weight:bold;
}

Live Sample

关于html - 知道如何在 css 中执行此操作吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13227078/

相关文章:

具有动态用户输入的 HTML5 Canvas

html - 您可以在 HTML 5 文档中拥有任意数量的 <nav> 吗?

javascript - 当源 Canvas 和目标 Canvas 相同时,HTML5 Canvas drawImage函数速度很慢?

html - 创建对 Angular 线背景图像

html - 当分辨率改变时使面板进入新行

css - 我无法处理绝对位置的 z-index

html - 将表格的线条涂成红色

html - 悬停图像时除了不透明度之外我还能使用什么?

css active 在 IE9 中不做鼠标释放

javascript - Js窗口根据另一个元素宽度调整改变元素宽度