如何设置从ASP.net GridView生成的HTML表的margin-left属性?
答案 0 :(得分:5)
<asp:GridView id="hurfDurf" style="margin-left:10%;" runat="server">
</asp:GridView>
或者,在您的aspx页面顶部...
<head>
<style type="text/css">
#hurfDurf table
{
margin-left:10px;
}
</style>
</head>