如何在asp.net中的多行文本框中增加行距?

时间:2018-12-17 07:12:54

标签: javascript c# asp.net visual-studio-2015

<asp:TextBox ID="questionTb" runat="server" Height="160px" TextMode="MultiLine" Rows="10" MaxLength="2"  Width="100%" OnTextChanged="questionTb_TextChanged"></asp:TextBox>

上面给出的代码段提供了下面提到的输出。

enter image description here

有什么方法可以增加两行之间的间距吗? (例如:行距:1.5)

2 个答案:

答案 0 :(得分:0)

我的问题的正确答案是:

textarea { line-height: 200% !important; }

答案 1 :(得分:0)

尝试

    textarea { 
                padding: 10px;
                line-height: 1.3;
            }