【问题标题】:textarea resize is not working in IE, I want resize-y in IE and it is working in chrometextarea resize 在 IE 中不起作用,我想在 IE 中 resize-y 并且它在 chrome 中起作用
【发布时间】:2019-02-14 13:49:33
【问题描述】:

我正在开发一个 Angular 4 项目,我必须在 IE 中创建仅垂直的可调整大小的文本区域,它在 chrome 和另一个浏览器中工作。

我在 IE 中找到了一些用于调整大小的 Jquery 插件,但它不仅支持垂直,而且我在同一页面中有多个文本区域。

This is a working example

CSS

.resizable {
   resize: vertical;
  min-height:150px;
}

HTML:

  <textarea class="resizable">
This paragraph is resizable in all directions, because
the CSS `resize` property is set to `both` on this element.
</textarea>

【问题讨论】:

    标签: javascript html css angular typescript


    【解决方案1】:

    您不能在 IE 中使用调整大小

    https://caniuse.com/#feat=css-resize

    您可以使用 jQueryUI Resizable for textareas。

    在您的项目中包含 jQuery UI 库

    然后在您的 jquery 代码中调用下面的行

    $("#textareaId").resizable({ });

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-31
    • 1970-01-01
    • 2012-03-22
    • 2020-06-04
    • 2017-10-01
    • 2015-06-05
    • 2014-08-26
    • 2011-02-26
    相关资源
    最近更新 更多