如何设置文本区域的滚动条样式 [英] How do I style the scrollbar of a textarea
问题描述
我有一个使用css样式的联系人表单中的文本区域,它看起来很棒,直到我写的内容超出了该区域所能容纳的范围为止.当我这样做时,会出现一个滚动条,并且该滚动条在我的深色样式中看起来很恐怖(这是黑底白字).那么我该如何设计呢?我已经用Google搜索了一些,但是没有找到任何好的答案,只是找到了所有这些仅IE的颜色变化.
I've got a textarea in a contact form which is styled with css, it looks great until i write more than the area can fit, when I do that a scrollbar appears and this scrollbar looks horrible with my dark styling (it's black with white text). So how would I go about to style this? I've googled some but haven't found any good answer just found all these IE-only colour changes.
推荐答案
您可以使用此脚本 http://studio.radube.com/html-textarea-custom-scrollbar 并获得个性化的textarea滚动条.
You can use this script http://studio.radube.com/html-textarea-custom-scrollbar and get a personalized textarea scrollbar.
这篇关于如何设置文本区域的滚动条样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!