简体   繁体   中英

Does the “AlternatingItemTemplate” work in windows explorer 9?

The following code with alternating background I have shows up fine in Chrome and Firefox but not IE9: If IE9 does support it, what am I missing?

在此处输入图片说明

Here is the output in Chrome and in IE9 respectively. Notice the grayish background missing on IE9

在此处输入图片说明

在此处输入图片说明

Internet Explorer, or any other browser for that matter, has no knowledge of AlternatingItemTemplate . It's part of a server-side control. ASP.NET renders the AlternativeItemTemplate 's contents when it's an alternate row.

As far as your background color not working, I recommend using the Developer Tools and tracing the style to determine why it isn't visible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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