我试图让基金会5的交汇处(与HTML部分)工作,但部分没有加载。Foundation5,jQuery和交汇处位于
/bower_components/
index.html位于
/src/
small.html、medium.html和large.html部分位于
/src/app/nav/
以下是相关档案:
index.html将javascripts放在</body>之前的底部*
<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/jquery.cookie/jquery.cookie.js"></script>
<script src="bower_components/jquery-placeholder/jquery.placeholder.js"></script>
<script src="bower_components/foundation/js/foundation.js"></script>
<script src="bower_components/foundation/js/foundation/foundation.interchange.js"></script>
<!-- endbower -->
<!-- endbuild -->interchange-test.html
<div data-interchange="[small.html, (small)], [medium.html, (medium)], [../large.html, (large)]">
<div data-alert class="alert-box secondary radius">
This is the default content.
</div>
</div>app.scss
/* Define mobile styles */
@media only screen {
body {
background: red;
}
}
/* min-width 641px, medium screens */
@media only screen and (min-width: 40.063em) {
body {
background: orange;
}
}
/* min-width 1025px, large screens */
@media only screen and (min-width: 64.063em) {
body {
background: yellow;
}
}对这里出什么问题有什么想法吗?提前谢谢。
发布于 2014-12-03 14:43:20
我通过将$(document).foundation('interchange', 'reflow');添加到index.html中来解决这个问题,还通过在文件名之前添加../app/nav/来更改部分路径,如下所示
<div data-interchange="[../app/nav/small.html, (small)], [../app/nav/medium.html, (medium)], [../app/nav/large.html, (large)]">
<div data-alert class="alert-box secondary radius">
This is the default content.
</div>
下面是对地基再流http://foundation.zurb.com/forum/posts/1712-bind-foundation-5-clearing-to-dynamically-loaded-images的讨论
https://stackoverflow.com/questions/27214722
复制相似问题