Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html IE中的textarea问题_Html_Internet Explorer_Textarea - Fatal编程技术网

Html IE中的textarea问题

Html IE中的textarea问题,html,internet-explorer,textarea,Html,Internet Explorer,Textarea,textarea在IE中提供图像滚动。。。有没有办法避免这种情况?添加以下样式并再次检查 .textarea{ width:100px; height:50px; scroll:auto; } 很抱歉,这应该如下所示 textarea{ width:100px; height:50px; scroll:auto; } 试一试 我似乎什么事都能侥幸逃脱。但我非常怀疑你的意思…你的意思是你不想在文本区域中使用滚动条吗?为什么不呢?如果用户输入了大量文本,则需要使用它。如果

textarea
在IE中提供图像滚动。。。有没有办法避免这种情况?

添加以下样式并再次检查

.textarea{
  width:100px;
  height:50px;
  scroll:auto;
}
很抱歉,这应该如下所示

textarea{
  width:100px;
  height:50px;
  scroll:auto;
}
试一试


我似乎什么事都能侥幸逃脱。但我非常怀疑你的意思…你的意思是你不想在文本区域中使用滚动条吗?为什么不呢?如果用户输入了大量文本,则需要使用它。如果你不想让用户输入大量文本或根本不输入文本,那么就不要使用文本区域。这是bcoz,ie和firefox在外观上存在浏览器问题,你能准确解释一下这个问题吗?@RoToRa。。问题是,我需要有一个地址字段,它必须像一个输入字段,但有一个高度(比如100px;)。。我正在使用textarea,但在IE中,它在右边有滚动条,而firefox中没有这样的东西。。
textarea {
resize: none;
}