jQuery简单实现中间浮窗效果

本文实例讲述了jQuery简单实现中间浮窗效果分享给大家供大家参考,具体如下:

basic.css:

标签 * g - 全局 * t - 区域 * m - 模板 * ui - 界面 * lb - 标签 * j - 脚本 只使用在有JS操作的样式 */ /*公共样式*/ html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,figure,footer,header,menu,nav,section,time,mark,audio,video,details,summary{ margin:0; padding:0;} body{ font-family:Helvetica,Tahoma,Arial,sans-serif; color:#333; font-size:16px; background-color:#fff;} input,select,textarea{ font-family:Helvetica,sans-serif; background:#fff; margin:0; padding:0; outline:none;} textarea{ resize:none;} img{ border:none;} i,em{ font-style:normal;} ul li{ list-style-type:none;} a{ color:#06f; text-decoration:none;} a:hover{ color:#06f; text-decoration:underline;} /*全局样式*/ .g-fl{ float:left;} .g-fr{ float:right;} .g-c{ clear:both;}

index.html:

<Meta charset="UTF-8"> <Meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> 中间浮窗