How to disable default scroll bar for textareas in IE8?

前端 未结 2 2068
梦毁少年i
梦毁少年i 2021-02-20 06:54

I am going through some of my older sites where I have a contact form and in IE8 there always is a vertical scroll bar displayed for my textareas, even when there is no content.

相关标签:
2条回答
  • 2021-02-20 07:22

    Use overflow: hidden and all will be well.

    <HTML>
        <BODY>
            <textarea rows="10" style="overflow: hidden;"/>
        </BODY>
    </HTML>
    
    0 讨论(0)
  • 2021-02-20 07:24

    I can't test on IE8 right now, but I can tell you that this works in IE6:

    textarea {
      overflow-y: auto;
    }
    
    0 讨论(0)
提交回复
热议问题