我遇到了IE的問題。該頁面在所有瀏覽器中都能正常工作,如下所示。溢出:隱藏使得數據在IE中消失
,但在IE中的數據並不即使它有露面。
問題是由溢流引起的:我在ListView中的項目模板使用隱藏屬性。當我將其更改爲任何其他值時,數據會在IE中顯示,但當然佈局會在所有瀏覽器中混亂。
這裏是源代碼和CSS http://jsfiddle.net/V5aCa/8/
這裏是我的代碼:
<asp:ListView ID="BookListView" runat="server" DataSourceID="SqlDataSource1"
onselectedindexchanged="BookListView_SelectedIndexChanged">
<LayoutTemplate>
<table runat="server" cellpadding="1" id="tblBooks" style="">
<tr runat="server">
<td runat="server">
<table ID="itemPlaceholderContainer" runat="server" border="0" style="">
<tr ID="itemPlaceholder" runat="server">
</tr>
</table>
</td>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<div style="overflow:hidden">
<div class="itemTemplateleftColumn">
<asp:Image ID="Image1" runat="server" ImageUrl='<%# String.Format("~\\Static\\Images\\BookCovers\\{0}", Eval("CoverImageSmall")) %>' Height="120px" Width="90px" BorderColor="Gray" BorderWidth="1px"/>
</div>
<div class="itemTemplaterightColumn">
<div class="titleRow">
<asp:Label runat="server" ID="BookTitleLabel" Text='<%# Eval("Title") %>' />
</div>
<div class="nameRow">
<asp:Label runat="server" ID="FirstNameLabel" Text='<%# Eval("FirstName") %>' />
<asp:Label runat="server" ID="LastNameLabel" Text='<%# Eval("LastName") %>' />
</div>
<div class="values">
<div>
value1
</div>
<div>
value2
</div>
</div>
<div class="values">
<div>
value3
</div>
<div>
<asp:Label runat="server" ID="PriceLabel" Text='<%# Eval("Price") %>' />€
</div>
</div>
</div>
</div>
</ItemTemplate>
</asp:ListView>
</asp:Content>
我將不勝感激解決這個問題的任何幫助。提前致謝。
你有一個客戶端問題。向我們展示客戶端代碼,而不是生成它的ASP。 – Quentin 2013-02-19 13:57:44
@Quentin這是在小提琴http://jsfiddle.net/V5aCa/8/ – Tsarl 2013-02-19 14:15:37
[我的網站上的東西不起作用。我可以只粘貼一個鏈接嗎?](http://meta.stackexchange.com/questions/125997/something-on-my-web-site-doesnt-work-can-i-just-paste-a-link對它) – Quentin 2013-02-19 14:16:26