JQuery
czjuttsw
Learning, staying up to date, and working on the latest and greatest in languages and APIs is what keeps me excited.
展开
-
Jquery#fancyBox
fancyBox:什么是fancyBox?fancyBox是一个用来显示图像,html内容和多媒体的工具,其特征是这些元素漂浮在页面之上。fancyBox构建在jQuery框架之上。怎么使用?1.首先,确保你使用的是有效的DOCTYPE.否则FancyBox将不能正常工作.2.包含必需的JavaScript文件(推荐从CDN(Co原创 2012-12-28 19:03:35 · 2545 阅读 · 2 评论 -
让元素在网页中可拖动
1.导入相应的JS类库: 2.带有id的div元素: Drag me around! 3:设置div的样式: #draggable { width:150px; height:150px; padding:0.5em; border:1px solid; } 4:让元素可拖动: $(function原创 2013-08-12 22:40:31 · 3803 阅读 · 1 评论 -
[html]自定义文件上传按钮
如果觉得文件上传按钮太难看,如果觉得上传按钮在各个浏览器上显示的效果不一致。我们可以自定义文件上传按钮。实现方案是将文件上传按钮的点击事件传递给其他按钮。.html ->文件上传.css ->#myFile { visibility: hidden; /* 隐藏 */}#myBtn { /* 在这里自定义你的原创 2014-04-01 17:48:48 · 11494 阅读 · 0 评论