一款公用的CSS+DIV弹窗_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 11:43:53
原创
1302人浏览过

为了方便以后自己使用!

 

立即学习前端免费学习笔记(深入)”;

讯飞公文
讯飞公文

讯飞公文写作助手是一款依托于讯飞星火大模型、专为广大公文材料撰稿人打造的高效公文写作平台。

讯飞公文 46
查看详情 讯飞公文

<html><head><style>.winmainshow { background: #fff; padding: 10px 5px 5px 25px; line-height: 25px; border: 1px solid #333; position: fixed; z-index: 1000; border-radius: 10px; color: #999; }</style></head><body><!--遮罩背景--><div id="shadow" class="winbg" style="display: none"></div><div id="UserFeedbackamin" class="winmainshow" style="display: none;">               </div><input type="button" id="afeed" value="弹出"></body></html>
登录后复制

 

立即学习前端免费学习笔记(深入)”;

javascript代码:

$().ready(function () { $("#afeed").click(function () {                var strc = ' <label> <input id="yjjy" class="c_opinion" name="one" type="radio" value="1" />意见建议</label>';                strc += '<label> <input id="tj" class="c_opinion" name="one" type="radio" value="2" />bug提交</label> <label><input id="tsjb" class="c_opinion" name="one" type="radio" value="3" />投诉举报</label>';                strc += '<label><input id="xqbx" class="c_opinion" name="one" type="radio" value="4" />寻求帮助</label>';                strc += '<br/><label id="labmsg"></label>';                windowCenteredfeed("#UserFeedbackamin", "", 600, 400, strc);            });$("#closeIframe").live("click", function () {                $("#loginPanel").animate({ 'top': '50%', 'left': '50%', 'height': '0px', 'width': '0px', 'opacity': '0.1' }, function () { $("#loginPanel").hide(); $("#shadow").hide(); });            });});function windowCenteredfeed(obj, title, width, height, content) {                        $("#shadow").show();            $(obj).show();            $(obj).css('height', '0px').css('width', '0px').css('top', $(window).height() / 2 + 'px').css('left', $(window).width() / 2 + 'px').css('opacity', '0.1');            $(obj).html("<div class=\"winwork\">" + title + "<i id='closeIframefeed' class=\"close\">&times;</i></div>" + content);                        $(obj).animate({ 'height': height + 'px', 'width': width + 'px', 'top': ($(window).height() - height) / 2 + 'px', 'left': ($(window).width() - width) / 2 + 'px', 'opacity': '1' }, "slow");        }
登录后复制

 

立即学习前端免费学习笔记(深入)”;

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号