css - 是否可以在 CSS 中为线框添加边框?
问题描述
AFAIK,在外部,线框位于仅包含堆叠线框的块容器中。在内部,行框由一个或多个适合一行的行内级框组成。
为了更好地理解它们的关系,我想知道是否可以为行框添加边框,而不是块容器或每个单独的行内级框。
来自 CSS 权威指南 4ed 的示例:
代码示例(没有线框边框):
p > span {border: 1px solid black; display: inline-block;}
<p style="font-size: 25px; line-height: 25px;">
<span>This is text, <em>some of which is emphasized</em>, plus other text</span><br>
<span>which is <strong style="font-size: 50px; vertical-align: 10px;">strongly
emphasized</strong> and which is</span><br>
<span>larger than the surrounding text.</span>
</p>
解决方案
推荐阅读
- reactjs - 更改 rowGroupPanelShow 状态后的 Aggrid 刷新
- c# - 使用 LINQ 进行列表比较时,C# 性能很慢
- java - 如何使用 Spock 在 LocalDate 中模拟静态方法?
- css - 粘性在引导列中不起作用
- java - graphql-java 中的性能问题,特别是 ExecutionStrategy#completeField() 和 ExecutionStrategy#fetchField()
- php - 使用会话值自动填充电子邮件字段 - Opencart 3.0.3.3
- azure - 使用 AJAX 表单后,任何用户都无法使用 Azure SSO 登录。可能 AJAX 表单对 App Pool 造成了问题(Asp.Net 4.7.2 MVC))
- python - 如何操作熊猫数据框行/标题?如何标注一行的价格是高于还是低于前一个价格?
- windows - 无法联系 pgAdmin 4 服务器
- r - R中每一行的中位数,数百列