0
我使用的下一个样品在我的代码执行帆布:http://jsfiddle.net/8wegxnz3/不同的图像
var lasticon;
$(function() {
$('.icon').click(function() {
if (lasticon != this.id) {
$('#' + lasticon + 'L').toggle();
lasticon = this.id;
} else {
lasticon = null;
}
$('#' + this.id + 'L').toggle();
});
});
.iconL {
display: none;
margin-top: 70px;
margin-left: 100px;
height: 100px;
width: 100px;
position: absolute;
}
var lasticon;
$(function() {
$('.icon').click(function() {
if (lasticon != this.id) {
$('#' + lasticon + 'L').toggle();
lasticon = this.id;
} else {
lasticon = null;
}
$('#' + this.id + 'L').toggle();
});
});
我想是实现下一个解决方案给我的第一代码,我在接下来的jfiddle发现:http://jsfiddle.net/m1erickson/LAS8L/
我已经做了一些测试,并试图将其实现到我的代码,但没有任何反应。
我希望能够调整并移动单击第一个图像时出现的第二个图像。所以你可以例如点击“电子邮件图标”,然后调整出现的第二个图标的大小。