【问题标题】:deck.js - Is it possible to change the element (body) for the class "deck-container" to another element?deck.js - 是否可以将“deck-container”类的元素(主体)更改为另一个元素?
【发布时间】:2012-05-03 13:51:01
【问题描述】:

Deck.js 在我使用时工作正常

<body class="deck-container"><section>

...但它不适用于 div 或

这可能只是对 JS 代码的一个小调整。但我在文档中找不到任何帮助。

如果有人能在这里帮助我,那就太好了!

【问题讨论】:

  • 你能发布你的代码吗?我快速浏览了deck.js 源CSS,看起来他只是在选择类。所以我认为 article 元素应该可以正常工作。

标签: jquery javascript deck.js


【解决方案1】:

样式应该重新定义,添加这个css块然后你可以避免body类:

<head>

<style type="text/css">
.deck-container {
width: auto;
max-width: 864px;
min-height: 560px;
font-size: 16px;
}
</style>

</head>

【讨论】:

    猜你喜欢
    • 2021-09-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-12
    • 2017-09-02
    • 2017-01-25
    相关资源
    最近更新 更多