【问题标题】:jCarousel Lite not working when using Transitional Doctype in the HTML在 HTML 中使用 Transitional Doctype 时,jCarousel Lite 不起作用
【发布时间】:2012-09-11 04:51:41
【问题描述】:

我正在使用 jCarousel Lite 作为来自 jCarousel Lite 的滑块

但是当我放置这个

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

它停止工作。jCarousel Lite 如何与 Transitional Doctype 一起使用?请提供任何帮助。

【问题讨论】:

  • Doctype 应该触发标准模式。 jCarousel Lite 演示中使用的 Doctype 也使用了触发标准模式的 Doctype。它不应该导致它破裂。
  • 定义“停止工作”。你得到什么错误?
  • @Quentin 没有出现错误。但没有显示滑块。

标签: jquery html jcarousellite


【解决方案1】:

使用以下过程进行故障排除:

  • 将工作的 JCarousel HTML 页面转换为 data URI

  • 使用 object 元素将该数据 URL 添加到 XHTML 页面:

    <object type="text/html" data="data:text/html;charset=utf-8;,%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3Cp%3EXHTML%20is%20the%20best%3C%2Fp%3E%3C%2Fbody%3E%3C%2Fhtml%3E"></object>
    
  • 如果有效,则为markup generation issue

  • 如果不是,那是浏览器特有的问题

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-07-21
    • 2018-02-18
    • 1970-01-01
    • 2011-12-22
    • 1970-01-01
    • 2014-01-25
    • 1970-01-01
    相关资源
    最近更新 更多