<commit_before><!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />
<title>border-image-width</title>
<meta name="description" content="CSS3参考手册之：border-image-width" />
<meta name="keywords" content="border-image-width, css3, css3参考手册" />
<meta name="author" content="<NAME>(飘零雾雨), <EMAIL>, www.doyoe.com" />
<meta name="robots" content="all" />
<!--[if lte IE 8]>
<script src="../../js/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="../../skin/article.css" />
</head>
<body>
<nav id="guide">
	<div class="from">
		<a href="http://css.doyoe.com/" target="_blank">CSS3参考手册</a>
		<span>&#187;</span>
		<a href="../index.htm">属性列表</a>
		<span>&#187;</span>
		<a href="index.htm" id="category" rel="properties/backgrounds" name="border-image-width">背景与边框属性</a>
		<span>&#187;</span>
	</div>
	<div class="to">
		<span class="label">相关内容：</span>
		<div class="g-combobox g-transition">
			<a href="?" class="g-transition target">
				<strong>其它背景边框参考</strong>
				<span>选择其它项<!--[if lte IE 7]><ins>IE7 and earlier, Get to die</ins><![endif]--></span>
			</a>
			<div class="g-transition list">
				<ul>
					<!-- 插入快速分类导航 -->
				</ul>
			</div>
		</div>
	</div>
</nav>
<header id="hd">
	<section id="title" class="g-mod">
		<h1 class="tit">border-image-width</h1>
		<ul class="info">
			<li><strong>版本：CSS3</strong></li>
			<li>2018.3.8</li>
		</ul>
		<!-- 插入浏览器信息 -->
	</section>
</header>
<section id="bd">
	<section id="syntax" class="g-mod g-attr">
		<h2 class="tit">语法：</h2>
		<div class="cont">
			<p><strong>border-image-width</strong>：[ <a href="../../values/length/length.htm">&lt;length&gt;</a> | <a href="../../values/numeric/percentage.htm">&lt;percentage&gt;</a> | <a href="../../values/numeric/number.htm">&lt;number&gt;</a> | auto ]{1,4}</p>
			<p><strong>默认值</strong>：<mark class="defaultvalue">1</mark></p>
			<p><strong>适用于</strong>：所有元素，除table元素设置了<a href="../table/border-collapse.htm" class="g-property">border-collapse</a>属性值为<code class="g-value">collapse</code>之外</p>
			<p><strong>继承性</strong>：无</p>
			<p><strong>动画性</strong>：否</p>
			<p><strong>计算值</strong>：指定值</p>
			<p><strong>媒　体</strong>：视觉</p>
		</div>
	</section>
	<section id="value" class="g-mod g-attr">
		<h2 class="tit">取值：</h2>
		<div class="cont">
			<dl>
				<dt><a href="../../values/length/length.htm">&lt;length&gt;</a>：</dt>
				<dd>用长度值指定图像边框的厚度。不允许负值。</dd>
				<dt><a href="../../values/numeric/percentage.htm">&lt;percentage&gt;</a>：</dt>
				<dd>用百分比指定图像边框的厚度。参照图像边框区域的大小进行换算。不允许负值。</dd>
				<dt><a href="../../values/numeric/number.htm">&lt;number&gt;</a>：</dt>
				<dd>用浮点数指定图像边框的厚度。该值表示为<a href="border-width.htm" class="g-property">border-width</a>的倍数，若值为<code class="g-value">2</code>，则使用值为<code class="g-code">2 * border-width</code>。不允许负值。</dd>
				<dt>auto：</dt>
				<dd>如果<code class="g-value">auto</code>值被设置，则<code class="g-property">border-image-width</code>采用与<a href="border-image-slice.htm" class="g-property">border-image-slice</a>相同的值。</dd>
			</dl>
		</div>
	</section>
	<section id="intro" class="g-mod g-attr">
		<h2 class="tit">说明：</h2>
		<div class="cont">
			<strong>定义元素边框图像的厚度。</strong>
			<ul>
				<li>该属性用于指定使用多厚的边框来承载被裁剪后的图像。</li>
				<li>
					<p>当该属性省略未定义时，因为默认值是<code class="g-value">1</code>，所以该属性的计算值会是<code class="g-code">1 * border-width</code>，相当于会直接使用<a href="border-width.htm" class="g-property">border-width</a>的定义。</p>
					<div class="gquote">
						<p class="gquote-tit"><strong>举个例子：</strong></p>
						<blockquote class="gquote-cont"><code><xmp>.demo {
	border-width: 10px;
	border-style: solid;
	border-image-source: linear-gradient(red, yellow);<commit_msg>opti: 调整 border-image-width 的参考描述<commit_after><!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />
<title>border-image-width</title>
<meta name="description" content="CSS3参考手册之：border-image-width" />
<meta name="keywords" content="border-image-width, css3, css3参考手册" />
<meta name="author" content="<NAME>(飘零雾雨), <EMAIL>, www.doyoe.com" />
<meta name="robots" content="all" />
<!--[if lte IE 8]>
<script src="../../js/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="../../skin/article.css" />
</head>
<body>
<nav id="guide">
	<div class="from">
		<a href="http://css.doyoe.com/" target="_blank">CSS3参考手册</a>
		<span>&#187;</span>
		<a href="../index.htm">属性列表</a>
		<span>&#187;</span>
		<a href="index.htm" id="category" rel="properties/backgrounds" name="border-image-width">背景与边框属性</a>
		<span>&#187;</span>
	</div>
	<div class="to">
		<span class="label">相关内容：</span>
		<div class="g-combobox g-transition">
			<a href="?" class="g-transition target">
				<strong>其它背景边框参考</strong>
				<span>选择其它项<!--[if lte IE 7]><ins>IE7 and earlier, Get to die</ins><![endif]--></span>
			</a>
			<div class="g-transition list">
				<ul>
					<!-- 插入快速分类导航 -->
				</ul>
			</div>
		</div>
	</div>
</nav>
<header id="hd">
	<section id="title" class="g-mod">
		<h1 class="tit">border-image-width</h1>
		<ul class="info">
			<li><strong>版本：CSS3</strong></li>
			<li>2018.3.8</li>
		</ul>
		<!-- 插入浏览器信息 -->
	</section>
</header>
<section id="bd">
	<section id="syntax" class="g-mod g-attr">
		<h2 class="tit">语法：</h2>
		<div class="cont">
			<p><strong>border-image-width</strong>：[ <a href="../../values/length/length.htm">&lt;length&gt;</a> | <a href="../../values/numeric/percentage.htm">&lt;percentage&gt;</a> | <a href="../../values/numeric/number.htm">&lt;number&gt;</a> | auto ]{1,4}</p>
			<p><strong>默认值</strong>：<mark class="defaultvalue">1</mark></p>
			<p><strong>适用于</strong>：所有元素，除table元素设置了<a href="../table/border-collapse.htm" class="g-property">border-collapse</a>属性值为<code class="g-value">collapse</code>之外</p>
			<p><strong>继承性</strong>：无</p>
			<p><strong>动画性</strong>：否</p>
			<p><strong>计算值</strong>：指定值</p>
			<p><strong>媒　体</strong>：视觉</p>
		</div>
	</section>
	<section id="value" class="g-mod g-attr">
		<h2 class="tit">取值：</h2>
		<div class="cont">
			<dl>
				<dt><a href="../../values/length/length.htm">&lt;length&gt;</a>：</dt>
				<dd>用长度值指定图像边框的厚度。不允许负值。</dd>
				<dt><a href="../../values/numeric/percentage.htm">&lt;percentage&gt;</a>：</dt>
				<dd>用百分比指定图像边框的厚度。参照图像边框区域的大小（包含border和padding）进行换算。不允许负值。</dd>
				<dt><a href="../../values/numeric/number.htm">&lt;number&gt;</a>：</dt>
				<dd>用浮点数指定图像边框的厚度。该值表示为<a href="border-width.htm" class="g-property">border-width</a>的倍数，若值为<code class="g-value">2</code>，则使用值为<code class="g-code">2 * border-width</code>。不允许负值。</dd>
				<dt>auto：</dt>
				<dd>如果<code class="g-value">auto</code>值被设置，则<code class="g-property">border-image-width</code>采用与<a href="border-image-slice.htm" class="g-property">border-image-slice</a>相同的值。</dd>
			</dl>
		</div>
	</section>
	<section id="intro" class="g-mod g-attr">
		<h2 class="tit">说明：</h2>
		<div class="cont">
			<strong>定义元素边框图像的厚度。</strong>
			<ul>
				<li>该属性用于指定使用多厚的边框来承载被裁剪后的图像。</li>
				<li>
					<p>当该属性省略未定义时，因为默认值是<code class="g-value">1</code>，所以该属性的计算值会是<code class="g-code">1 * border-width</code>，相当于会直接使用<a href="border-width.htm" class="g-property">border-width</a>的定义。</p>
					<div class="gquote">
						<p class="gquote-tit"><strong>举个例子：</strong></p>
						<blockquote class="gquote-cont"><code><xmp>.demo {
	border-width: 10px;
	border-style: solid;
	border-image-source: linear-gradient(red, yellow);
{'fraction_non_alphanumeric': 0.26238707911305775, 'fraction_numerical': 0.01149739939775527, 'mean_word_length': 4.552431610942249, 'pattern_counts': {'":': 0, '<': 375, '<?xml version=': 0, '>': 375, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1075843', 'n_tokens_mistral': 3592, 'n_tokens_neox': 3449, 'n_words': 394}