Telerik:RadRotator 在 IE9 中未显示(渲染)

发布于 2025-01-07 18:49:04 字数 726 浏览 4 评论 0原文

好的,我的页面上有一个 telerik:RadRotator,它从数据库加载一些图像,旋转器在 FireFox 和 Chrome 中都能正确显示,但是当我在 IE9 中打开它时,旋转器 div 放置在页面上,但旋转器本身没有显示(渲染)。

<telerik:RadRotator ID="RadRotator1" runat="server" Width="791px" Height="215px"
ItemHeight="215px" ItemWidth="791px" OnItemDataBound="RadRotator1_ItemDataBound"
RotatorType="AutomaticAdvance" FrameDuration="10000" ScrollDuration="3000" CssClass="ImageRotator"
ScrollDirection="Right" PauseOnMouseOver="false">
<ItemTemplate>
    <asp:HyperLink ID="hypImage" runat="server">
        <asp:Image ID="imgScroller" runat="server" Width="791" Height="215" /></asp:HyperLink>
</ItemTemplate>

关于这里发生的事情有什么想法吗?我尝试删除应用的样式,但什么也没有。

Ok i have a telerik:RadRotator on my page that loads a few images from the db, the rotator displays correctly in both FireFox and Chrome but when i open it in IE9 the rotator div is placed on the page but the rotator itself doesn't display(render).

<telerik:RadRotator ID="RadRotator1" runat="server" Width="791px" Height="215px"
ItemHeight="215px" ItemWidth="791px" OnItemDataBound="RadRotator1_ItemDataBound"
RotatorType="AutomaticAdvance" FrameDuration="10000" ScrollDuration="3000" CssClass="ImageRotator"
ScrollDirection="Right" PauseOnMouseOver="false">
<ItemTemplate>
    <asp:HyperLink ID="hypImage" runat="server">
        <asp:Image ID="imgScroller" runat="server" Width="791" Height="215" /></asp:HyperLink>
</ItemTemplate>

Any ideas as to what is happening here? I have tried to remove the styles applied and nothing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

静待花开 2025-01-14 18:49:04

此类问题通常与 IE(尤其是旧版本的浏览器)不会忽略的 HTML 格式不正确有关。我在您的代码中发现的唯一问题是未封闭的 RadRotator 控制标记,尽管您很可能不小心错过了它。由于示例中的代码似乎有效,因此可能从数据源插入了错误的内容。请验证数据源中的内容是否正确输入,以及填充旋转器项目的数据在使用前是否已正确转义。您还可以通过检查页面源上控件的 HTML 表示形式中的 li 元素的内容来检查 RadRotator 的项目是否正确呈现。

Such problems are often related to an incorrectly formatted HTML that is not ignored by IE, especially older versions of the browser. The only issue that I found in your code was the unclosed RadRotator control tag, although most probably you have missed it by accident. Since the code from your sample appears to be valid, it is possible that an erroneous content is inserted from the data source. Please verify that the content in the datasource is entered correctly and that the data, populating the items of the rotator, is properly escaped before it is used. You can also check if the RadRotator's items are rendered properly by examining the content of the li elements in the HTML representation of the control on the source of your page.

-黛色若梦 2025-01-14 18:49:04

好吧,经过一番大惊小怪,我发现滚动条本身被包裹在一个超链接中。删除超链接后一切正常 100%

Ok after much fuss I found that the scroller itself was wrapped in a hyperlink. After removing the hyperlink everything works 100%

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文