ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# resize **版本:CSS3** 继承性:无 ### 语法: **resize** : none | both | horizontal | vertical | inherit **相关属性**: N/A ### 取值: none:UserAgent没提供尺寸调整机制,用户不能操纵机制调节元素的尺寸。 both:UserAgent提供双向尺寸调整机制,让用户可以调节元素的宽度和高度。horizontal:UserAgent提供单向水平尺寸调整机制,让用户可以调节元素的宽度。vertical:UserAgent提供单向垂直尺寸调整机制,让用户可以调节元素的高度。 inherit: 默认继承。 ### 说明: 使元素的区域可缩放,调节元素尺寸大小。适用于任意获得"overflow"条件的容器。 ### 兼容性: <table><thead><tr><th class="type">类型</th> <th class="type_ie"><img src="https://box.kancloud.cn/2015-09-02_55e5d386c1e88.png" alt="IE" />Internet Explorer</th> <th class="type_firefox"><img src="https://box.kancloud.cn/2015-09-02_55e5d386d5341.png" alt="Firefox" />Firefox</th> <th class="type_chrome"><img src="https://box.kancloud.cn/2015-09-02_55e5d386de9a9.png" alt="Chrome" />Chrome</th> <th class="type_opera"><img src="https://box.kancloud.cn/2015-09-02_55e5d386e792b.png" alt="Opera" />Opera</th> <th class="type_safari"><img src="https://box.kancloud.cn/2015-09-02_55e5d386f09bb.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 yes"><span>(√)</span>Chrome 1.0.x</td> <td class="support no"><span>(×)</span>Opera 9.63</td> <td class="support yes"><span>(√)</span>Safari 3.1</td> </tr><tr><td class="support no"><span>(×)</span>IE7</td> <td class="support no"><span>(×)</span>Firefox 3.0</td> <td class="support yes"><span>(√)</span>Chrome 2.0.x</td> <td></td> <td class="support yes"><span>(√)</span>Safari 4</td> </tr><tr><td class="support no"><span>(×)</span>IE8</td> <td></td> <td></td> <td></td> <td></td> </tr><tr><td></td> <td></td> <td></td> <td></td> <td></td> </tr></tbody></table> ### 示例: ![resize](https://box.kancloud.cn/2015-09-02_55e5d38704683.gif) <!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>resize</title></head><body><div style="width:300px;height:80px;padding:16px;border:1px solid;resize:both;overflow: auto;">Safari、Chrome允许元素的缩放的,但尚未完全支持,目前只允许双向调整。CSS3允许你将这个属性应用到任意元素,这将使缩放这个功能拥有跨浏览器的支持。</div></body></html> 复制代码 Copyright © 2009 [Tencent ISD webteam](http://webteam.tencent.com/). All Rights Reserved ### 快速跳转 - [语法](# "跳转到“语法”") - [取值](# "跳转到“取值”") - [说明](# "跳转到“说明”") - [兼容性](# "跳转到“兼容性”") - [示例](# "跳转到“示例”")