简体   繁体   English

基础4显示不起作用,仅显示叠加层

[英]Foundation 4 reveal not working only overlay shown

I just started to use Foundation 4, thought i will give it a go after beeing a massive Twitter Bootstrap user. 我刚开始使用Foundation 4,以为我会在吸引大量Twitter Bootstrap用户之后尝试一下。

There is one thing what i do not get. 我没有得到一件事。

No matter how i define my buttons to open my modal, just the overlay shows up nothing else. 无论我如何定义打开我的模态的按钮,仅覆盖图都不会显示其他内容。 Al files included correctly, checked console, no errors, checked log no errors. 正确包含所有文件,检查控制台,没有错误,检查日志没有错误。

here are my tries 这是我的尝试

not woking 不醒

<button data-reveal-id="myModal" data-reveal-ajax="{{ url('settings/portfolio-modal') }}">
    Click Me For A Modal
</button>

not working either 也不工作

<a href="{{ url('settings/portfolio-modal') }}" data-reveal-id="myModal" data-reveal-ajax="true">
    Click Me For A Modal
</a>

the html what should be open HTML应该打开什么

<div id="myModal">
    <h1>This is a modal</h1>
</div>

So could someone give me a hint? 有人可以给我提示吗?

PS: i am using Laravel php framework PS:我正在使用Laravel php框架

Have you checked that the URL you load is configured in your route? 您是否检查过在路由中配置了要加载的URL?

Also try with javascript 也尝试使用javascript

$('#myModal').foundation('reveal', 'open', '../../settings/portfolio-modal');

此错误已在基础5中修复: https//github.com/zurb/foundation/issues/3444

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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