-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zh-CN] update 'column-rule-width' #18792
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,89 @@ | ||
--- | ||
title: column-rule-width | ||
slug: Web/CSS/column-rule-width | ||
l10n: | ||
sourceCommit: 489dbd4d8e2e099733d3bb04ad3f97678c54ac8e | ||
--- | ||
|
||
{{CSSRef}} | ||
|
||
CSS 特性 `column-rule-width` 让你可以设置在多列布局中被画在两列之间的规则(线条)的宽度。 | ||
**`column-rule-width`** [CSS](/zh-CN/docs/Web/CSS) 属性设置多列布局中列之间绘制的线条的宽度。 | ||
|
||
{{cssinfo}} | ||
|
||
## Syntax | ||
{{EmbedInteractiveExample("pages/css/column-rule-width.html")}} | ||
|
||
``` | ||
Formal syntax: {{csssyntax("column-rule-width")}} | ||
``` | ||
## 语法 | ||
|
||
``` | ||
/* Keyword values */ | ||
```css | ||
/* 关键字值 */ | ||
column-rule-width: thin; | ||
column-rule-width: medium; | ||
column-rule-width: thick; | ||
|
||
/* Length values */ | ||
/* <length> 值 */ | ||
column-rule-width: 1px; | ||
column-rule-width: 2.5em; | ||
|
||
/* 全局值 */ | ||
column-rule-width: inherit; | ||
column-rule-width: initial; | ||
column-rule-width: revert; | ||
column-rule-width: revert-layer; | ||
column-rule-width: unset; | ||
``` | ||
|
||
### Values | ||
`column-rule-width` 属性被指定为单个 `<'border-width'>` 值。 | ||
|
||
### 值 | ||
|
||
- `<'border-width'>` | ||
- : 是由 {{ cssxref("border-width") }} 定义的关键字,定义列规则的宽度。它可以是 {{cssxref("<length>")}} 或 `thin`、 `medium`、或 `thick` 关键字之一。 | ||
|
||
## 形式定义 | ||
|
||
{{cssinfo}} | ||
|
||
- \<br-width> | ||
- : Is a {{cssxref("<length>")}} or one of the `thin`, `medium` or `thick` keyword describing the width of the rule separating two columns. | ||
## 形式语法 | ||
|
||
## Example | ||
{{csssyntax}} | ||
|
||
## 示例 | ||
|
||
### 设置属性宽度为 4px 的列规则 | ||
|
||
#### HTML | ||
|
||
```html | ||
<p> | ||
这是分成三列的文本。在 `column-rule-width` | ||
属性中用于更改列与列之间的线条宽度。修改列之间线条的宽度。你不觉得这很棒吗? | ||
</p> | ||
``` | ||
|
||
#### CSS | ||
|
||
```css | ||
#header { | ||
column-rule-width: thick; | ||
p { | ||
column-count: 3; | ||
column-rule-style: solid; | ||
column-rule-width: 4px; | ||
} | ||
``` | ||
|
||
## Specifications | ||
#### 结果 | ||
|
||
{{EmbedLiveSample("设置属性宽度为 4px 的列规则")}} | ||
|
||
## 规范 | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
## 浏览器兼容性 | ||
|
||
{{Compat}} | ||
|
||
## 参见 | ||
|
||
- [多列布局](/zh-CN/docs/Learn/CSS/CSS_layout/Multiple-column_Layout) | ||
- {{CSSXref("column-rule-style")}} | ||
- {{CSSXref("column-rule-color")}} | ||
- {{CSSXref("column-rule")}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fill in the missing metadata about l10n.