在工具箱中拖出了一个gridview的控件之后,用鼠标并不能直接拖动它的大小,我们可以看到这个gridview对应的HTML文本
<asp:GridView ID="GridViewAllUser" runat="server"
AutoGenerateSelectButton="True" style="text-align: center; top: 143px; left: 182px; float: none; height: 50px; width: 250px;"
onselectedindexchanged="GridViewAllUser_SelectedIndexChanged"
AllowPaging="True" AutoGenerateDeleteButton="True" Height="16px"
onpageindexchanging="GridViewAllUser_PageIndexChanging"
onrowdeleting="GridViewAllUser_RowDeleting" PageSize="5" Width="253px">
</asp:GridView>
其中有一句话
center; top: 143px; left: 182px; float: none; height: 50px; width: 250px
试着改一下
height 和 width
应该就可以修改大小了