如何使用CSS`resize`来调整元素的高度/宽度小于初始高度/宽度Chrome? [英] How can I use CSS `resize` to resize an element to a height/width less than initial height/width on Chrome?
问题描述
我刚刚在Chromium上看到
I have just seen that on Chromium
- 我无法将元素调整为小于其初始高度的高度
resize:vertical
或resize:both
- 在
resize:horizontal
或resize:both
的情况下,元素的宽度小于其初始宽度。
- I can't resize an element to a height smaller than its initial height in case of
resize:vertical
orresize:both
- I can't resize an element to a width smaller than its initial width in case of
resize:horizontal
orresize:both
.
演示: http://jsfiddle.net/3rdj4/3
我已阅读 w3c规格,我猜这是因为这个问题:
I have read w3c spec, and I guess the problem comes because of this:
用户代理可能限制调整大小范围到合适的范围,
例如在元素的原始格式化大小之间,而大的
足以包含所有元素的内容。
The user agent may restrict the resizing range to something suitable, such as between the original formatted size of the element, and large enough to encompass all the element's contents.
有办法吗,即使Chrome应用上述段落吗?
Is there a way to do it, even if Chrome applies the paragraph above?
/ strong>:我使用Chromium 30.0.1592.0(216775)
Note: I use Chromium 30.0.1592.0 (216775)
推荐答案
我会说没有javascript。
I'm gonna say no(t without javascript).
自定义CSS,以允许chrome textarea调整大小小于初始状态?
您无法调整textarea在其初始维度是
报告为错误
( https://code.google.com/p/chromium/issues/detail?id=94583 )
这篇关于如何使用CSS`resize`来调整元素的高度/宽度小于初始高度/宽度Chrome?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!