我想使用colorbox来实现弹出窗口 ,---本人对JS和JQuery都没接触过,希望各位能人帮帮忙啦对在网上下载的原代码进行修改
-----这是修改后的代码------------<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<style type="text/css">
body{font:12px/1.2 Verdana, Arial, san-serrif; padding:0 10px;}
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
h2{font-size:13px; margin:15px 0 0 0;}
</style>
<link href="colorbox.css" rel="stylesheet" type="text/css" />
<script src="../colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
<script src="../colorbox/jquery.colorbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".example7").colorbox({width:"80%", height:"80%", iframe:true});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<p><a class='example7' href="http://google.com" >Outside Webpage (Iframe)</a></p>
</form>
</body>
</html>
-----这是修改后的代码------------<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<style type="text/css">
body{font:12px/1.2 Verdana, Arial, san-serrif; padding:0 10px;}
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
h2{font-size:13px; margin:15px 0 0 0;}
</style>
<link href="colorbox.css" rel="stylesheet" type="text/css" />
<script src="../colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
<script src="../colorbox/jquery.colorbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".example7").colorbox({width:"80%", height:"80%", iframe:true});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<p><a class='example7' href="http://google.com" >Outside Webpage (Iframe)</a></p>
</form>
</body>
</html>
解决方案 »
- 为什么以下代码不能动态插入图片?
- js 或 jquery 的一个问题。
- 100分请高手指教关于点击按钮页面循环显示的实现
- 怎样使 iframe 返回的页面 显示在 父窗口中 ?
- 如何查找上级元素的id
- 用JS调用HTML标签里内容的问题
- 关于Javascript对Iframe操作的兼容性问题!!!! 请大家不吝赐教
- Higcharts柱线图怎么才能让两边的y轴数据互换位置?
- 如何用js去掉table中的列?
- 求一正则javasript转化为vbsript
- Date的setFullYear方法的一个问题
- can u give a explain. of closure! from sandy945 blog.
http://colorpowered.com/colorbox/core/example1/index.html
http://colorpowered.com/colorbox/
页面上面有每种参数对应的含义,具体设置方式可以参照之前发的页面上的例子。
都是在js中设置的,跟css没有任何关系。