-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一个函数搞定右键菜单 #12
Comments
如果去掉函数中的 |
Uncaught ReferenceError: CreateElt is not defined |
function CreateElt(elm,cls){
var e=document.createElement("style")
e.className="menu_css";
return e;
} or var stl=document.createElement("style")
stl.className="menu_css"; 谢谢指出,,已修改! |
菜单回调函数增加一个参数:
另外, body的高度要保证不为0哦, 不然, 菜单会看见的哟... html,body{
height:100%;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一个函数搞定右键菜单,不啰嗦:
使用方法:
直观图:
The text was updated successfully, but these errors were encountered: