我的颜色盒不起作用,请任何人帮助我 [英] my colorbox is not working please any one help me
本文介绍了我的颜色盒不起作用,请任何人帮助我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 过渡//EN" < html =" http://www.w3.org/1999/xhtml" >
< 头 =" Head1" runat >服务器" >
< 元 =" utf-8" / < 标题 > ColorBox示例< /title >
< 样式 =" text/css" < /style >
< 链接 =" 屏幕" rel 样式表" href =" colorbox.css" / < 脚本 =" http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" < /script >
< 脚本 =" jquery.colorbox.js" > < /script < 脚本 >
$(document).ready(function(){
$(.example7").colorbox({width:"80%",height:"80%",iframe:true});
$(#%> ").click(function() {
//"%> "
$(#a1").trigger("click");
返回false;
});
})
< /script >
< /head >
< 正文 >
< 表单 =" 服务器" < p >
< a =' =" a1" href =" http://google.com" < /a > < ; /p >
< asp:Button ID =" runat 服务器" 文本 点击" / < /form >
< /body >
< /html >
解决方案
(document).ready(function(){
(.example7").colorbox({宽度:"80%",高度:"80%",iframe:true});
(#%> ).click(function(){ //"%> "
>
<!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 id="Head1" runat="server">
<meta charset="utf-8" />
<title>ColorBox Examples</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 media="screen" rel="stylesheet" href="colorbox.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="jquery.colorbox.js"></script>
<script>
$(document).ready(function () {
$(".example7").colorbox({ width: "80%", height: "80%", iframe: true });
$("#<%=btn1.ClientID %>").click(function () {
//"<%=sessionValue %>"
$("#a1").trigger("click");
return false;
});
})
</script>
</head>
<body>
<form runat="server">
<p>
<a class='example7' id="a1" href="http://google.com">Outside Webpage (Iframe)</a></p>
<asp:Button ID="btn1" runat="server" Text="Click" />
</form>
</body>
</html>
解决方案
(document).ready(function () {
(".example7").colorbox({ width: "80%", height: "80%", iframe: true });
("#<%=btn1.ClientID %>").click(function () { //"<%=sessionValue %>"
这篇关于我的颜色盒不起作用,请任何人帮助我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文