Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基于此处的解决方案:从“无限”动态控件将值输入数据库
我可以在运行时成功创建动态 asp.net 控件。所以如果用户输入 10,它会显示 10 个文本框,如果用户输入 50,它会显示 50。到目前为止还不错。但是 50 个文本框会使页面变得非常冗长。
我应该如何并排显示文本框?分页是个好主意吗?
可滚动的 div 将是一个更好的选择。
将所有文本框渲染为具有固定高度和宽度的 div 的子级,并将 oveflow 属性设置为 auto。