Authored by zhangxiaoru

share

... ... @@ -115,23 +115,14 @@ $('.share-wrapper').on('click', 'i', function() {
share(type);
});
$('.weixin').hover(function() {
$('.weixin').mouseenter(function() {
var $el = $(this),
type = $el.data('type');
share(type, $el);
}, function() {
$('.weixin-share-box').hide();
});
// $('.weixin').mouseover(function() {
// var $el = $(this),
// type = $el.data('type');
// console.log(1)
// share(type, $el);
// });
// $('.weixin').mouseleave(function() {
// $('.weixin-share-box').hide();
// });
\ No newline at end of file
$('.weixin').mouseleave(function() {
console.log(2);
$('.weixin-share-box').hide();
});
... ...
... ... @@ -11,23 +11,16 @@
.share-wrapper {
i {
display: block;
float: left;
width: 20px;
height: 20px;
margin-right: 15px;
cursor: pointer;
font-size: 20px;
}
.weixin {
height: 30px;
}
}
.weixin-share-box {
position: absolute;
padding-top: 9px;
margin-top: 9px;
text-align: center;
top: 15px;
left: 26px;
... ... @@ -56,7 +49,7 @@
height: 12px;
display: block;
background-image: resolve("layout/up.png");
top: 17px;
top: 9px;
}
}
... ...