- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
最佳答案
只需在您的 CSS
文件中添加
textarea { resize: none; }
后期(2019 年)编辑:与我的这个答案以及关于 resize: none
声明应用于 textarea
元素的 GitHub 代码搜索结果数量的增加相关,我写了一些关于为什么我认为 CSS resize none在 textarea
上不利于用户体验:
Very often, the textarea is limited to a number of rows and columns or it has fixed width and height defined via CSS. Based solely on my own experience, while answering to forums, writing contact forms on websites, filling live chat popups or even private messaging on Twitter this is very frustrating.
Sometimes you need to type a long reply that consists of many paragraphs and wrapping that text within a tiny textarea box makes it hard to understand and to follow as you type. There were many times when I had to write that text within Notepad++ for example and then just paste the whole reply in that small textarea. I admit I also opened the DevTools to override the resize: none declaration but that’s not really a productive way to do things.
因此,在将上述内容添加到样式表之前,您可能需要检查一下。
关于html - 如何删除文本区域右下角的调整大小选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6340545/
我是一名优秀的程序员,十分优秀!