aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/border-image-outset/index.html
blob: 959c2031c840f006be8b8e6396b92939181c25af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
title: border-image-outset
slug: Web/CSS/border-image-outset
tags:
  - CSS
  - CSS Borders
  - CSS Property
  - Reference
translation_of: Web/CSS/border-image-outset
---
<div>{{CSSRef("CSS Borders")}}</div>

<h2 id="概述">概述</h2>

<p><code>border-image-outset属性定义边框图像可超出边框盒的大小。</code></p>

<div>{{cssinfo}}</div>

<h2 id="语法">语法</h2>

<pre class="twopartsyntaxbox"><a href="/en-US/docs/CSS/Value_definition_syntax" title="CSS/Value_definition_syntax">Formal syntax</a>: {{csssyntax("border-image-outset")}}
</pre>

<pre>/* border-image-outset: <em>sides</em> */
border-image-outset: 30%;

/* border-image-outset:<em>垂直 水平</em> */
border-image-outset: 10% 30%;

/* border-image-outset: 顶 水平 底<em> */</em>
border-image-outset: 30px 30% 45px;

/* border-image-outset:<em>顶 右 底 左</em> <em> */</em>
border-image-outset: 7px 12px 14px 5px;

border-image-repeat: inherit;
</pre>

<h3 id="值"></h3>

<dl>
 <dt><em>sides</em></dt>
 <dd>边框图像在四个方向超出边框盒的{{cssxref("&lt;length&gt;")}}{{cssxref("&lt;number&gt;")}}数量。</dd>
 <dt><em>horizontal</em></dt>
 <dd>边框图像在水平方向(左和右)超出边框盒的{{cssxref("&lt;length&gt;")}}{{cssxref("&lt;number&gt;")}}数量.</dd>
 <dt><em>vertical</em></dt>
 <dd>边框图像在垂直方向(上和下)超出边框盒的{{cssxref("&lt;length&gt;")}}{{cssxref("&lt;number&gt;")}}数量.</dd>
 <dt><em>top</em></dt>
 <dd>边框图像在上方超出边框盒的{{cssxref("&lt;length&gt;")}}{{cssxref("&lt;number&gt;")}}数量.</dd>
 <dt><em>bottom</em></dt>
 <dd>边框图像在下方超出边框盒的{{cssxref("&lt;length&gt;")}}{{cssxref("&lt;number&gt;")}}数量.</dd>
 <dt><em>right</em></dt>
 <dd>边框图像在右方超出边框盒的{{cssxref("&lt;length&gt;")}}{{cssxref("&lt;number&gt;")}}数量.</dd>
 <dt><em>left</em></dt>
 <dd>边框图像在左方超出边框盒的{{cssxref("&lt;length&gt;")}}{{cssxref("&lt;number&gt;")}}数量.</dd>
 <dt><code>inherit</code></dt>
 <dd>四个方向的值都继承于父元素的该属性计算后值。</dd>
</dl>

<h2 id="Specifications" name="Specifications">规范</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">规范</th>
   <th scope="col">状态</th>
   <th scope="col">备注</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS3 Backgrounds', '#border-image-outset', 'border-image-outset')}}</td>
   <td>{{Spec2('CSS3 Backgrounds')}}</td>
   <td>首次定义</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>

{{Compat("css.properties.border-image-outset")}}

<h2 id="CompatibilityTable"><span style="font-size: 14px; font-weight: normal; line-height: 1.5;">{{CompatibilityTable}}</span></h2>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>15.0</td>
   <td>{{CompatGeckoDesktop("15.0")}}</td>
   <td>11</td>
   <td>15</td>
   <td>6</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoMobile("15.0")}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>