在Chrome中无法缩小可调整大小的textarea [英] Can't reduce size of resizable textarea in Chrome

查看:104
本文介绍了在Chrome中无法缩小可调整大小的textarea的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个textarea:

 < textarea cols =1rows =1style =width: 500px; height:200px;>< / textarea> 

由于某些原因,我无法在Chrome中使用鼠标光标调整大小,但在Fifefox中工作正常。我错过了什么?

解决方案

您没有做错任何事,您的代码是正确的,但是您遇到了一个错误Chrome:
https://code.google.com/p / chromium / issues / detail?id = 94583



它会将您的css高度值视为最小高度值,这是一个至少存在的错误2年

I have a textarea:

<textarea cols="1" rows="1" style="width:500px; height:200px;"></textarea>

For some reason I can't make it smaller when resizing with mouse cursor in Chrome though in Fifefox it works fine. What have I missed?

解决方案

You've done nothing wrong, your code is correct, but you've encountered a bug in Chrome: https://code.google.com/p/chromium/issues/detail?id=94583

It treats your css height value as a min-height value, a bug that's been around for at least 2 years

这篇关于在Chrome中无法缩小可调整大小的textarea的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆