在我的应用程序中,我在数据列表中使用文字控件,现在我想为文字控件应用高度和宽度是否可以将高度和宽度应用于文字控件。谢谢你。
最佳答案
在 div 控件中使用文字控件做一件事。并将高度和宽度分配给 div 控件,因为文字控件在页面上呈现为静态文本。
例如
<div style="height:10px;width10px;">
<asp:Literal ID="Literal3" runat="Server" Text="Just a text inside Literal
Control"></asp:Literal>
<div>
关于asp.net - 文字控制高度和宽度?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3011612/