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.
我有一个大于我的内容占位符大小的网格视图。它不适合 contentplaceholder,每当我尝试编辑 gridview 时,它的宽度都会增加,使其延伸得更远。有人可以帮忙吗
检查您的 gridview 是否设置了Height和Width属性。如果是这样.. 删除高度属性并将宽度设置为“100%”。
还将 gridview 放在asp:Panel控件中,然后将面板的ScrollBars属性设置为“Horizontal” ,将 Panel 的Width属性设置为“100%”