html 手机点击事件弹出层
2014-04-04 15:18
435 查看
<div style="font-size:14px; color:#000;" ontouchend="gtouchend()">编辑</div> <div id="editor" style="font-size:14px; position:absolute;z-index: 9999;color:#F99; background-color:#FFFFFF;display:none; top:inherit; right:2%;"> <span ontouchend="updateDetails()" style="right:20%; width:30px; border:1px solid #6FF;">修改</span> <samp style="width:10px;border:1px solid #6FF;" ontouchend="deleteDetails(this)" >删除</samp> </div> <script> //手释放,如果在500毫秒内就释放,则取消长按事件,此时可以执行onclick应该执行的事件 function gtouchend(){ //这里写要执行的内容(尤如onclick事件) alert("你这是点击,不是长按"+$("#editor").css("left")); $("#editor").css("display","block"); return false; }; </script>
相关文章推荐
- 常用html元素总结
- HTML实现“摇一摇”效果
- Html.Partial和Html. RenderPartial用法
- 为何在有 DOCTYPE 的 HTML 文档之上仍然还会出现混杂模式?
- @RenderBody、@RenderSection、@RenderPage、Html.RenderPartial、Html.RenderAction的作用和区别
- Razor: @Html.Partial() vs @RenderPage()
- NopCommerce 导航菜单HTML静态处理以提高性能
- html鼠标指针变化控制
- 验证字符串中是否存在html标签
- HTML 最简单的tips 怎么支持指定DIV显示提示信息
- 在HTML页面中插入Flash
- 在线HTML编辑器的引入
- HTML DOM
- HTML中转义字符
- html文件中flash视频格式(flv、swf)文件的嵌入方法
- html文件中flash格式(flv、swf)文件的嵌入
- DHTMLX中dhtmlxLayout中将cell的收放按钮隐藏的实现
- MVC Razor模板引擎 @RenderBody、@RenderPage、@RenderSection及Html.RenderPartial、Html.RenderAction
- html 5 学习笔记-重要知识点 1
- 设置table的td宽度不随文字变宽