window.open()居中
来源:互联网 发布:神机妙算造价软件价格 编辑:程序博客网 时间:2024/06/07 14:30
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <SCRIPT LANGUAGE="JavaScript"> function openwindow(url,name,iWidth,iHeight) { var url; //转向网页的地址; var name; //网页名称,可为空; var iWidth; //弹出窗口的宽度; var iHeight; //弹出窗口的高度; var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置; var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置; window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no'); } </SCRIPT> <title>无标题文档</title></head><body><a href="javascript:void(0);" onclick="javascript:openwindow('a.html','',400,200);">转到a</a></body></html>
0 0
- Window.open 居中
- window.open 居中显示
- window.open()窗体居中
- window.open()居中
- window.open 弹出居中窗口
- 居中 window.open 与 window.showModalDialog
- window.open的弹出窗口居中
- 弹出窗口居中(window.open)
- javascript---封装window.open.(始终居中打开)
- window.open打开页面居中显示
- window.open居中显示,模式窗口
- window.open打开页面居中显示
- open.window弹出窗口实现居中
- js window.open 打开页面并居中
- window.open弹出窗口居中显示
- JS中window.open弹出窗口居中
- window.open()弹出居中的窗口
- js window.open 打开页面并居中
- 【深度学习】RNN(循环神经网络)之LSTM(长短时记忆)
- 自定义简单的柱状图
- Android Studio 运行出现 Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Linux 内核list_head 学习(一)
- 李航《统计学习方法》第七章——用Python实现支持向量机模型(伪造数据集)
- window.open()居中
- CGLib简单入门
- CocoaPods
- 284. Peeking Iterator
- 常见 Hash 算法的原理
- mtd-utils 及 ubi-utils 交叉编译(转载)
- 关于RN组件的导出export和export default
- 自己动手 虚拟机安装ubuntu
- 师门技术论坛:java异常