反思不起作用

发布于 2024-09-09 10:12:09 字数 336 浏览 3 评论 0原文

我正在使用最新版本 (v1.6.2) 的 nyromodal lightbox

jQuery.nyroModalSettings({title:'Manual Title'}); 

它不会反映任何标题并且灯箱标题仍为空。我也尝试过:

jQuery.nyroModalManual({
  title:'Manual Title'
});

但是没有任何反映。我怎样才能让反射起作用?

I'm using the latest version (v1.6.2) of nyromodal lightbox:

jQuery.nyroModalSettings({title:'Manual Title'}); 

It won't reflect any title and the lightbox title remains empty. I also tried:

jQuery.nyroModalManual({
  title:'Manual Title'
});

But nothing reflects. How can I get the reflection working?

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

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

发布评论

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

评论(2

你的笑 2024-09-16 10:12:09

nyromodal 的设置表明它应该使用 title: 'your title' 来工作。

但您也可以设置 html 元素的 title 属性,nyromodal 会选择它。

<p><a href="img/img2.jpg" class="nyroModal" title="3rd Street Promenade">Image</a></p>

The settings of nyromodal says it should work using title: 'your title'.

But alternatively you can set the title attribute of html element and nyromodal will pick it up.

<p><a href="img/img2.jpg" class="nyroModal" title="3rd Street Promenade">Image</a></p>
左耳近心 2024-09-16 10:12:09

尝试更改 $.fn.nyroModal.settings 或设置 a 标签标题属性。它可能不起作用的唯一原因是您的链接中的标题属性为空或其在手动调用中损坏

Try changing $.fn.nyroModal.settings or set the a tag title attribute. The only reason it may not work is you have empty title attribute in your link or its broken in manual call

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