摘要:
思路:1.首先要定位实现这种效果的元素 ,本次通过class2.如果是动态显示不同的提示内容,需设置title3.通过JQ给定位到元素加上 mouseover 和mouseout 事件4.再完善下,弹出框跟随鼠标在目标元素上移动5.再把 mouseover 、mouseout 合并成 hover//页面加载完成$(function () { var x = 10; var y = 20; //设置提示框相对于偏移位置,防止遮挡鼠标 $(".prompt").hover(function (e) { //鼠标移上事件 this.myTitle = this.title; // 阅读全文
摘要:
日期:2013-5-19来源:GBin1.com在线演示分享一个来自corpse的固定背景滚动特效,使用background-attachment: fixed和导航菜单,页面会非常平滑的滚动。HTML Section 1 Section 2 Section 3 Section 4 Section 5 CSS/* Set all parents to full height */
html, body,
.container,
.cbp-fbs... 阅读全文