需要全身标签鼠标悬停功能 [英] Need whole body tag mouseover function

查看:57
本文介绍了需要全身标签鼠标悬停功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要全身鼠标悬停功能。当我进入其他页面时,我的一些内容会追加特定的div。

I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div.

我的代码是:

$('body').mouseover(function() {
  $('#text').append('<div>New content</div>');
});


推荐答案

如果身体不会总是有足够的潜在高度内容适合较低的高度。

The body will not always have its full potential height if the contents fit in a lower height.

您可以使用 $('html')。mouseover 代替:< a href =http://jsfiddle.net/mPdd7/ =nofollow> http://jsfiddle.net/mPdd7/ 。

这篇关于需要全身标签鼠标悬停功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆