多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Border-color **版本:CSS3** 继承性:无 ### 语法: **border-color** : *<color>* **相关属性** :border-top-color, border-right-color, border-bottom-color , border-left-color ### 取值: *<color>*:颜色值。 ### 说明: 1. **设置对象边框的颜色。** 使用CSS3的border-radius属性,如果你设置了border的宽度是X px,那么你就可以在这个border上使用X种颜色,每种颜色显示1px的宽度。如果说你的border的宽度是10个像素,但是只声明了5或6种颜色,那么最后一个颜色将被添加到剩下的宽度。 | 引擎类型 | Gecko | Webkit | Presto | |-----|-----|-----|-----| | Border-color | -moz-border-color |   |   | |   |   |   |   | ### 兼容性: <table><thead><tr><th class="type">类型</th> <th class="type_ie"><img src="https://box.kancloud.cn/2015-09-02_55e5d3830ac53.png" alt="IE" />Internet Explorer</th> <th class="type_firefox"><img src="https://box.kancloud.cn/2015-09-02_55e5d38390c83.png" alt="Firefox" />Firefox</th> <th class="type_chrome"><img src="https://box.kancloud.cn/2015-09-02_55e5d3839872f.png" alt="Chrome" />Chrome</th> <th class="type_opera"><img src="https://box.kancloud.cn/2015-09-02_55e5d383a16b3.png" alt="Opera" />Opera</th> <th class="type_safari"><img src="https://box.kancloud.cn/2015-09-02_55e5d383a9a04.png" alt="Safari" />Safari</th> </tr></thead><tbody><tr><td rowspan="4" class="version">版本</td> <td class="support no"><span>(×)</span>IE6</td> <td class="support no"><span>(×)</span>Firefox 2.0</td> <td class="support no"><span>(×)</span>Chrome 1.0.x</td> <td class="support no"><span>(×)</span>Opera 9.64</td> <td class="support no"><span>(×)</span>Safari 3.1</td> </tr><tr><td class="support no"><span>(×)</span>IE7</td> <td class="support yes"><span>(√)</span>Firefox 3.0</td> <td class="support no"><span>(×)</span>Chrome 2.0.x</td> <td></td> <td></td> </tr><tr><td class="support no"><span>(×)</span>IE8</td> <td class="support yes"><span>(√)</span>Firefox 3.5</td> <td></td> <td></td> <td></td> </tr><tr><td></td> <td></td> <td></td> <td></td> <td></td> </tr></tbody></table> ### 示例: ![](https://box.kancloud.cn/2015-09-02_55e5d383b13bd.png) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="utf-8" /><meta name="robots" content="all" /><meta name="author" content="Tencent-ISRD" /><meta name="Copyright" content="Tencent" /><title>Border-color</title></head><body><div style="border: 8px solid #000;-moz-border-bottom-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;-moz-border-top-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;-moz-border-left-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;-moz-border-right-colors: #555 #666 #777 #888 #999 #aaa #bbb #ccc;padding: 5px 5px 5px 15px;">在Firefox浏览器里能看到边框颜色渐变效果</div></body></html> 复制代码 Copyright © 2009 [Tencent ISD webteam](http://webteam.tencent.com/). All Rights Reserved ### 快速跳转 - [语法](# "跳转到“语法”") - [取值](# "跳转到“取值”") - [说明](# "跳转到“说明”") - [兼容性](# "跳转到“兼容性”") - [示例](# "跳转到“示例”")