点击出现小弹窗并显示需要的内容
来源:互联网 发布:易企秀编辑器 js 编辑:程序博客网 时间:2024/05/16 01:29
<style type="text/css">.black_overlay{ display: none; position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { display: none; position: fixed; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 6px solid orange; background-color: white; z-index:1002; overflow: auto;}p{ text-indent:2em; padding:0px; margin:0px; }</style>
<a href="javascript:void(0)" onclick="show('<s:property value='num'/>')">
<div align="center"><div id="light" class="white_content"> <p id="result"></p><a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'"> <span style="color:red" >关闭</span></a> </div> <div id="fade" class="black_overlay" > </div> </div>
function show(index){var data ={nation : index};$.post("/from/queryOnlineNationBoss.action",data,function(msg){$("p").html(msg);document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'; });}
阅读全文
0 0
- 点击出现小弹窗并显示需要的内容
- 自定义的TextView,使部分内容拥有点击事件,并在点击内容上方出现对应的词义等信息
- 常用的点击搜索框显示下拉框并实时刷新用户输入的内容
- javaScript 点击button弹出提示框并显示提交内容
- Jquery实现点击切换图片并隐藏显示内容
- js实现两个div左右并列显示,并实现点击标题,切换内容显示
- 设置EditText的输入内容,并处理重复点击事件
- js点击显示隐藏内容
- 点击今天和明天显示相应的内容
- 当点击checkbox时隐藏的内容显示
- 文本框默认显示内容点击后消失的方法
- 自定义tableviewcell 被点击之后显示的内容消失
- 点击menu导航切换,显示不同的内容模块
- iframe 点击左侧菜单栏 右侧显示相应的网页内容
- HTML,angularJS表格内容排序,点击删除,删除当前,输入内容显示包含内容的数据
- ext4js 主页面布局,动态分配菜单,并点击url 显示到内容面板中
- 实现Label文本内容中电话号码特殊颜色显示并点击电话号码能拨打
- 实现Label文本内容中电话号码特殊颜色显示并点击电话号码能拨打
- 莫尔斯码
- 欢迎使用CSDN-markdown编辑器
- Spring Boot 开发web 项目
- curl的post传值
- Eclipse配色(保护眼睛)
- 点击出现小弹窗并显示需要的内容
- SpringBoot + thymeleaf
- 部分和问题 (搜索)
- 非常简单的轮播方法
- 依赖注入Dagger2
- map reduce filter sorted (高阶函数)
- tomcat也启动了,为什么http://localhost:8080仍然找不到网页?
- jsp运行原理
- 彻底卸载软件的注册表