求大神给出个解决办法,试了好多个思路都行不通 javascriptjquery 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没大看懂。是不是这个意思?<html><head><style>.wrapper{width:800px;margin:100px auto;}.item{float:left;}.i1{width:100px;height:300px;border:1px solid red;}.i2{width:100px;height:300px;margin-left:30px;border:1px solid blue;}#view{float:left;width:390px;height:300px;margin-left:30px;display:none;border:1px solid;}</style><script src="jquery-1.8.3.min.js" type="text/javascript"></script></head><body> <div class="wrapper"> <div class="item i1"><input type="button" value="点击我好" class="imgs"></div> <div class="item i2"><img src=""></div> <div class="item i2"><img src=""></div> <div class="item i2"><img src=""></div> <div id="view"></div></div><script type="text/javascript">$(function(){ $(".imgs").click(function(e){ e.stopPropagation(); $(".i2,#view").toggle(); }); $(".i2").click(function(){ $(".i2,#view").toggle(); $(".imgs").hide(); }); $(".i1").click(function(){ $("#view").hide(); $(".i2,.imgs").show(); }); });</script></body></html> 无效哦引入jquery.js了么? 求教大神 appendChild哪里错了啊 给一个数组prototype属性实际应用中的例子,我试了几个都不行。 弹窗样式属性问题 firefox和IE不一致的问题,寻求解决方案 如何根据获得的对象取其ID值? getElementById,为什么为null? 使用url传递变量 [求助]script里面包含JS文件 总说缺少对象,是什么原因?如何改??关于swapimage 如何让浏览器端打开我的网页时自动下载并运行一个可执行程序。 实现搜索下拉赋值的问题 请教一个javascript问题
是不是这个意思?<html><head>
<style>
.wrapper{width:800px;margin:100px auto;}
.item{float:left;}
.i1{width:100px;height:300px;border:1px solid red;}
.i2{width:100px;height:300px;margin-left:30px;border:1px solid blue;}
#view{float:left;width:390px;height:300px;margin-left:30px;display:none;border:1px solid;}
</style>
<script src="jquery-1.8.3.min.js" type="text/javascript"></script>
</head>
<body>
<div class="wrapper">
<div class="item i1"><input type="button" value="点击我好" class="imgs"></div>
<div class="item i2"><img src=""></div>
<div class="item i2"><img src=""></div>
<div class="item i2"><img src=""></div>
<div id="view"></div>
</div><script type="text/javascript">
$(function(){
$(".imgs").click(function(e){
e.stopPropagation();
$(".i2,#view").toggle();
}); $(".i2").click(function(){
$(".i2,#view").toggle();
$(".imgs").hide();
}); $(".i1").click(function(){
$("#view").hide();
$(".i2,.imgs").show();
});
});
</script>
</body></html>