社区
图象工具使用
帖子详情
关于无边框窗的问题。
bolm
2003-05-21 07:32:12
我的无边框窗在ie5里是很正常的,为什么在ie6中会全屏显示,而且关闭后又会弹出一个窗口。
请指教!!!
...全文
45
3
打赏
收藏
关于无边框窗的问题。
我的无边框窗在ie5里是很正常的,为什么在ie6中会全屏显示,而且关闭后又会弹出一个窗口。 请指教!!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
bolm
2003-05-22
打赏
举报
回复
我的代码和你的一样。后来在别人ie6的浏览器上运行又好像没有问题。
nba23
2003-05-21
打赏
举报
回复
或者把你的代码帖出来看下
nba23
2003-05-21
打赏
举报
回复
你的代码是怎样的,
用这样的试试
<script language=javascript>
minimizebar="minimize0604.gif"; //nbw窗口右上角最小化“按钮”的图片
closebar="close0604.gif"; //nbw窗口右上角关闭“按钮”的图片
icon="icon0604.gif"; //nbw窗口左上角的小图标
function noBorderWin(fileName,w,h,titleBg,titleColor,titleWord,borderColor,scr)
/*
------------------参数说明-------------------
fileName :无边窗口中显示的文件。
w :窗口的宽度。
h :窗口的高度。
titleBg :窗口“标题栏”的背景色。
titleColor :窗口“标题栏”文字的颜色。
titleWord :窗口“标题栏”的文字。
borderColor:窗口“边框”的颜色。
scr :是否出现滚动条。取值yes/no或者1/0。
--------------------------------------------
*/
{
nbw=window.open('','','fullscreen=yes');
nbw.resizeTo(w,h);
nbw.moveTo((screen.width-w)/2,(screen.height-h)/2);
nbw.document.writeln("<title>"+titleWord+"</title>");
nbw.document.writeln("<"+"script language=javascript"+">"+"cv=0"+"<"+"/script"+">");
nbw.document.writeln("<body topmargin=0 leftmargin=0 scroll=no>");
nbw.document.writeln("<table cellpadding=0 cellspacing=0 width=300 height=100% style=\"border: 1px solid "+borderColor+"\">");
nbw.document.writeln(" <tr bgcolor="+titleBg+" height=20 onselectstart='return false' onmousedown='cv=1;x=event.x;y=event.y;setCapture();' onmouseup='cv=0;releaseCapture();' onmousemove='if(cv)window.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>");
nbw.document.writeln(" <td width=21 align=left><img width=12 width=12 src="+icon+"></td>");
nbw.document.writeln(" <td style=\"font-family:宋体; font-size:12px; color:"+titleColor+";\"><span style='top:1;position:relative;cursor:default;'>"+titleWord+"</span></td>");
nbw.document.writeln(" <td align=right width=30 style=font-size:16px>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onclick=window.blur();>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=关闭 src="+closebar+" onclick=window.close();>");
nbw.document.writeln(" </td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln(" <tr>");
nbw.document.writeln(" <td colspan=3><iframe frameborder=0 width=100% height=100% scrolling="+scr+" src="+fileName+"></iframe></td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln("</table>");
}
</script>
<button onclick=noBorderWin('http://pblg.nease.net','300','240','#000000','#CCCCCC','一个无边窗口的例子','#000000','no');>打开窗口</button>
Qt 实现无
边框
窗
口,支持缩放
窗
口大小
Qt 实现无
边框
窗
口,可以自由缩放
窗
口尺寸,QT5.8+MinGW编译通过,运行效果见博客分类“Qt实用技术”中关于无
边框
窗
口的实现文章。
windows透明的无
边框
窗
口
用c++创建无
边框
窗
口, 同时可以通过鼠标拖动改变
窗
口大小,可以设置
窗
口的透明度
Qt无
边框
窗
口移动、拉伸、缩放
Qt无
边框
窗
口的移动、拉伸
边框
、鼠标滚轮缩放大小
Qt5实现无
边框
窗
口阴影
最简单的方式实现了无
边框
窗
口的阴影,不需要重写paintEvent即可实现,PushButton的阴影也在代码中实现了!
Qt无
边框
窗
口最大化时拖拽还原代码
# Qt无
边框
窗
口最大化时拖拽还原代码 通过重定义eventFilter()函数和changeEvent()函数,实现Qt无
边框
窗
口最大化时拖动标题栏还原
窗
口的效果。
图象工具使用
1,451
社区成员
24,335
社区内容
发帖
与我相关
我的任务
图象工具使用
多媒体/设计/Flash/Silverlight 开发 图象工具使用
复制链接
扫一扫
分享
社区描述
多媒体/设计/Flash/Silverlight 开发 图象工具使用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章