首页 新闻 赞助 找找看

ColorBox弹框显示一个HTML页面

0
悬赏园豆:20 [已关闭问题] 关闭于 2016-07-05 15:22

今天上手用colorBox弹框,要求显示一个页面可就是没有用。

 

<link rel="stylesheet" type="text/css" href="colorbox.css">
<script src="jquery-1.4.2.min.js"></script>
<script src="jquery.colorbox-min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $(".AA").colorbox({ 
width: "50%",
height:"50%", 
href:
'User.html' }); }); </script> <style> body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;} a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;} </style> </head> <body> <a class='AA' >HTML</a> </body>

这个是User.html页面

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
body{
    width:400px;
    height:300px;
    background-color:#999;
    
    }
</style>
</head>

<body>
这是一个新页面
</body>
</html>
阿文sky的主页 阿文sky | 初学一级 | 园豆:158
提问于:2016-06-22 17:10
< >
分享
所有回答(2)
0

没有错,我试了你的代码可以弹出你看一下是不是调的js有问题,http://www.51xuediannao.com/js/jquery/colorbox/这里可以下载jquery.colorbox-min.js

爱努力的小疯子 | 园豆:319 (菜鸟二级) | 2016-06-24 10:34
0

浏览器不能本地加载Ajax

阿文sky | 园豆:158 (初学一级) | 2016-07-05 15:21
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册