如何在textarea中显示线条以使其看起来像记事本? [英] How can I show lines in a textarea to make it look like notepad?
本文介绍了如何在textarea中显示线条以使其看起来像记事本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在文本区域中显示线条,使其看起来像记事本。我只有一个文本区域。以下记事本仅供参考。
I need to show lines in my text-area to make it look a like notepad. I have a single text-area only. The below notepad is for reference.
推荐答案
这是一个想法: http://www.bookofzeus.com/articles/css-styling-textarea-give-notebook-notepad-look/
简而言之:设置 background-image
并设置 line-height
到图像使用的任何行高。
In short: set a background-image
and set line-height
to whatever line height the image is using.
这篇关于如何在textarea中显示线条以使其看起来像记事本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文