繁体   English   中英

我对 TabContainer 控件有疑问

[英]I have a problem with TabContainer control

当我运行它时它不会出现在屏幕上..但它确实出现在 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>

甚至更好:

.ajax__tab_header
{
     direction: rtl;
}

这也将切换选项卡的顺序。 (对于 rtl 语言)

对于从右到左设置选项卡,在页面上添加以下样式:

.ajax__tab_header
{
     text-align: right;
}

但要解决可见性问题,信息不足。 您是否在代码隐藏中使用可见性属性?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM