【发布时间】:2011-09-26 17:33:17
【问题描述】:
当我运行它时它没有出现在屏幕上..但它确实出现在 Visual Studio 2010 的设计视图中。我也想从左到右从右到左设置标签:
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2"
Height="584px" Width="739px" AutoPostBack="True" BackColor="#666699"
BorderColor="#666699">
<asp:TabPanel ID="Questions" runat="server" HeaderText="שאלות">
<ContentTemplate>
<asp:GridView runat="server" Height="547px"
style="margin-left: 2px; margin-top: 15px" Width="667px">
</asp:GridView>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="Answers" runat="server" HeaderText="תשובות">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" Height="547px"
style="margin-top: 17px" Width="666px">
</asp:GridView>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="Responses" runat="server" HeaderText="תגובות">
<ContentTemplate>
<asp:GridView ID="GridView2" runat="server" Height="547px"
style="margin-top: 21px" Width="666px">
</asp:GridView>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
【问题讨论】:
-
你为什么要为header建立一个绝对位置?
-
演示样式在标题中...它们是两个独立的部分。布赖恩..尝试移动它也许