我的网站上有一些javascript看起来像这样。
<script>
if($(window).width() <= 1024){
function openColorBox(){
$.colorbox({iframe:true, width:"80%", height:"80%", href: "assets/mobile/lightbox.html"});
}
setTimeout(openColorBox, 1000);
}
</script>
lightbox.html看起来像这样。
<p class="headline">Welcome to</p>
<p class="image-p"><img align="middle" class="image" src="../css/images/cmapslogo.png"></p>
<p class="text">Would you like to continue to the mobile site?</p>
<p class="button-p"><a href="index.html"><button class="button button1">Go to mobile site</button></a></p>
然而,当有人按下链接转到index.html时,它会将其加载到jQuery颜色框中。这个链接可以加载到实际页面而不是彩盒吗? Colorbox来自这里: http://www.jacklmoore.com/colorbox/
答案 0 :(得分:0)
尝试设定目标:
<a href="index.html" target="_top">