ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[CSS参考手册](http://css.doyoe.com/)»[属性列表](#)»[过渡属性](#)» 相关内容: [**其它过渡属性参考**选择其它项](#) - [transition](#) - [transition-property](#) - [transition-duration](#) - [transition-timing-function](#) - [transition-delay](#) # transition-property - **版本:CSS3** - 继承性:无 ### 语法: **transition-property**:all | none | [<property>](#)[ ,[<property>](#) ]* **默认值**:all ### 取值: all:所有可以进行过渡的css属性none:不指定过渡的css属性<property>:指定要进行过渡的css属性 ### 说明: **检索或设置对象中的参与过渡的属性。** - 默认值为:all。默认为所有可以进行过渡的css属性。 - 如果提供多个属性值,以逗号进行分隔。 - 对应的脚本特性为**transitionProperty**。 ### 兼容性: - 浅绿 = 支持 - 红色 = 不支持 - 墨绿 = 部分支持 - 橙色 = 实验性质 <table class="gdataform"><thead><tr><th><a href="#browser" title="查看本文档测试时所用浏览器版本">支持版本</a>\类型</th> <th><span class="browser-ie">IE</span></th> <th><span class="browser-firefox">Firefox</span></th> <th><span class="browser-safari">Safari</span></th> <th><span class="browser-chrome">Chrome</span></th> <th><span class="browser-opera">Opera</span></th> </tr></thead><tbody><tr><th>版本</th> <td class="unsupport">6.0-9.0</td> <td rowspan="2" class="experimentsupport">4.0-9.0</td> <td rowspan="2" class="experimentsupport">5.1</td> <td rowspan="2" class="experimentsupport">13.0-16.0</td> <td rowspan="2" class="experimentsupport">11.50-11.60</td> </tr><tr><th>版本</th> <td class="experimentsupport">10.0</td> </tr></tbody></table> ### 写法: | 内核类型 | 写法 | |-----|-----| | Webkit(Chrome/Safari) | -webkit-transition-property | | Gecko(Firefox) | -moz-transition-property | | Presto(Opera) | -o-transition-property | | Trident(IE) | -ms-transition-property | | W3C | transition-property | ### 示例: # 请将鼠标移动到下面的矩形上: - 本次设置过渡的属性: border-color, background-color, color ### 有过渡效果的属性: | 属性名称 | 类型 | |-----|-----| | background-color | color | | background-image | only gradients | | background-position | percentage, length | | border-bottom-color | color | | border-bottom-width | length | | border-color | color | | border-left-color | color | | border-left-width | length | | border-right-color | color | | border-right-width | length | | border-spacing | length | | border-top-color | color | | border-top-width | length | | border-width | length | | bottom | length, percentage | | color | color | | crop | rectangle | | font-size | length, percentage | | font-weight | number | | grid-* | various | | height | length, percentage | | left | length, percentage | | letter-spacing | length | | line-height | number, length, percentage | | margin-bottom | length | | margin-left | length | | margin-right | length | | margin-top | length | | max-height | length, percentage | | max-width | length, percentage | | min-height | length, percentage | | min-width | length, percentage | | opacity | number | | outline-color | color | | outline-offset | integer | | outline-width | length | | padding-bottom | length | | padding-left | length | | padding-right | length | | padding-top | length | | right | length, percentage | | text-indent | length, percentage | | text-shadow | shadow | | top | length, percentage | | vertical-align | keywords, length, percentage | | visibility | visibility | | width | length, percentage | | word-spacing | length, percentage | | z-index | integer | | zoom | number | Copyright © 2006-2012 [Doyoe](http://www.doyoe.com/). All Rights Reserved