首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我想在边框的样式上加上一些文字,这是一种z索引样式吗?

我想在边框的样式上加上一些文字,这是一种z索引样式吗?
EN

Stack Overflow用户
提问于 2015-06-06 03:59:59
回答 2查看 51关注 0票数 0

我不能张贴图片,因为它说,我需要10个声誉张贴图片,所以这里的链接。单击此处

因为我想把一些文字放在一些边界线的前面,需要你的建议/建议的人。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-06-06 04:23:10

您在图像中显示的是一个字段集。

代码语言:javascript
复制
<fieldset>
     <legend>I'm a Fieldset</legend>
     Stuff<br>
     Stuff
</fieldset>

票数 0
EN

Stack Overflow用户

发布于 2015-06-06 07:20:22

只是一个文字块,像这样的垂直线分开?

代码语言:javascript
复制
.lined {
  display: table;
  border: 1px solid;
}

.lined > div {
  position: relative;
  display: table-cell;
  padding: 1em;
}

.lined > div + div:before {
  content: "";
  position: absolute;
  top: 10%;
  left: -1px;
  width: 0;
  height: 80%;
  border-left: 1px solid;
}
代码语言:javascript
复制
<div class="lined">
  <div>The display property specifies the type of rendering box used for an element. In HTML, default display property values are taken from behaviors described in the HTML specifications or from the browser/user default stylesheet. The default value in XML is inline.</div>
  <div>In addition to the many different display box types, the value none lets you turn off the display of an element; when you use none, all descendant elements also have their display turned off. The document is rendered as though the element doesn't exist in the document tree.</div>
  <div>CSS is one of the core languages of the open web and has a standardized W3C specification. Developed in levels, CSS1 is now obsolete, CSS2.1 is a recommendation, and CSS3, now split into smaller modules, is progressing on the standardization track.</div>
</div>

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30678777

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档