div float:left-style innerhalb einer asp-TabContainer

Ich bin mit ASP.NET Ajax control toolkit v3.5 TabContainer Kontrolle. Immer wenn ich mit dem style "float:left" my tab " container "lets go" von den div ' s, die es enthält und alle meine Inhalte angezeigt, die sich außerhalb von/getrennt vom tab-Steuerelement (es gibt einen schwarzen Rahmen um den tab-Bereich). Online, einige Leute sagen, die Einstellung "overflow:hidden" hilft, aber das scheint nicht zu funktionieren im Rahmen der TabContainer. Alle seine busted in FF und IE. Weiß jemand wie man dieses Problem beheben?

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TabControl.aspx.cs" Inherits="WebApplication1.TabControl" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"/>
        <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2">
            <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
            <ContentTemplate>
            <div>I'm all nice and pretty inside the tab</div><div>Me too I'm pretty inside tab, but I fall to the nextline.</div>
            </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
            <ContentTemplate>
            <div style="float:left;">This is messed up on float</div><div style="float:left;">Watch as I fall onto the line</div>
            </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    </div>
    </form>
</body>
</html>

InformationsquelleAutor P.Brian.Mackey | 2010-09-16

Schreibe einen Kommentar