html5开发桌面程序调用dll,使用webkit开发桌面软件

importwin.ui;/*DSG{{*/varwinform = ..win.form(text="webkit浏览器支持库";right=544;bottom=362;border="none")

winform.add()/*}}*///导入webkit支持库importweb.kit.form;//创建webkit浏览器窗口varwbKitView = web.kit.form(winform);

wbKitView.external = {

hitmin =function(){returnwinform.hitmin();

}

hitmax =function(){returnwinform.hitmax()

}

hitCaption =function(){returnwinform.hitCaption()

}

close =function(){returnwinform.close()

}

};

wbKitView.html =/**

html,body{

margin:0;

background:#fff;

height:100%;

}

*{

-webkit-user-select: none;

}

/*标题栏*/

#header{

position:absolute;

top:0px;

left:0px;

height:28px;

width:100%;

background:rgb(52,152,220);

cursor:default;

}

/*中间内容栏*/

#container{

box-sizing:border-box;/*使高度包含padding*/

height:100%;

width:100%;

padding-top:28px;

padding-bottom:35px;

margin:0 auto;

overflow:auto;

}

/*底栏*/

#footer {

height:35px;

width:100%;

position: absolute;

bottom:0;

left:0;

z-index:100;

background:rgb(239,237,238);

text-align:right;

padding:3px 5px;

box-sizing:border-box;

}

/*中间内容栏 左侧列*/

#container .lside{

height:100%;

width:150px;

float:left;

background:rgb(110,179,210);

}

/*中间内容栏 右侧列*/

#container .rside{

height:100%;

margin-left:150px;

background:#FFF;

}

#footer button{

padding:4px 13px;

font-size:12px;

background:rgb(27,174,93);

color:white;

border:0;

}

#footer button:hover {

background:rgb(33,127,188);

box-shadow: 0 0 5px rgba(81, 203, 238, 1);

cursor:pointer;

}

#footer button:active {

background:rgb(20,110,170);

cursor:pointer;

}

#header .title-bar{

margin-right:75px;

padding-left:10px;

height:28px;

line-height: 28px;

font-size:9pt;

color:#eee;

}

#header .ctrls{

width:75px;

height:28px;

float:right;

}

#header .ctrls a{

display:block;

float:left;

height:14px;

font-family:"Marlett";

font-size:14px;

padding:4px;

color:#fff;

cursor:default;

}

#header .ctrls a[id]:hover{

background:#6ebccf;

}

#header .ctrls a[id]:active{

background:#FF0000;

}

**///添加可拖动边框importwin.ui.resizeBorder;

win.ui.resizeBorder(winform);//添加阴影importwin.ui.shadow;

win.ui.shadow(winform);//限定最大化范围importwin.ui.minmax;

win.ui.minmax(winform);

winform.show();

win.loopMessage();

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值