示
<TD align=“center“ valign=“top“>
<asp:TextBox id=”txtNews” runat=”server TextMode=“MultiLine” readonly=true width=100% Wrap=”true” style=”overflow-y:visible”></TextBox>
</TD>
重要的一句:style=”overflow-y:visible”
博客展示了ASP.NET中一个文本框的设置代码,文本框ID为txtNews,运行在服务器端,为多行模式且只读,宽度100%可换行,还强调了设置样式overflow-y:visible这一重要点。
示
<TD align=“center“ valign=“top“>
<asp:TextBox id=”txtNews” runat=”server TextMode=“MultiLine” readonly=true width=100% Wrap=”true” style=”overflow-y:visible”></TextBox>
</TD>
重要的一句:style=”overflow-y:visible”