js提交页面,js修改的label的值掉失的解决方案

it2022-05-09  25

解决方法是用Input取代label控件,详细见下面:

 <input id="lblBeginTime" runat="server" type="text" tabindex="-1" readonly="readonly"  style="background-color: Transparent; text-align: Left; border-style: none; width: 100px;"    value='<%# DataBinder.Eval(Container.DataItem, "BeginTime") %>' />

方法步骤:

1、设置样式style="background-color: Transparent; text-align: Left; border-style: none; width: 100px;" 

2、设置readonly="readonly" 

 

转载于:https://www.cnblogs.com/zhengguocong/archive/2010/04/29/1723896.html

相关资源:Vue项目部署在Spring Boot出现页面空白问题的解决方案

最新回复(0)