帖子
帖子
用户
博客
课程
123
返回列表 发新帖
55
帖子
1
勋章
237
Y币
天若邻 发表于 2016-7-20 17:13
经验分享:
比如a.html页面要使用openFrame方式弹窗b.html页面,实现半透明遮挡a.html效果
第一步:在b.htm ...

按你给的方法没起效果  
4
帖子
0
勋章
14
Y币
openFrame可以  openwin不管怎么样都是黑色  我来挖坟了
7
帖子
0
勋章
30
Y币
现在這个问题解决了吗   怎么解决的   我遇到同样的问题
48
帖子
0
勋章
297
Y币
openwin不能透明,只有openFrame可以
7
帖子
0
勋章
30
Y币
openFrame也没法背景透明   是什么情况   在frame页面里设置  body{
               background-color: transparent !important;
               background: rgba(0,0,0,0.0);
          }
api.openFrame({
            name: 'btnframe',
            url: 'html/btnframe.html',
            bgColor:'rgba(0,0,0,0)',
            rect: {
                x: api.winWidth/2-45,
                y: api.winHeight-100,
                w: 82,
                h: 82
            },
            bounces:false
        });
在另一个页面调用
5
帖子
0
勋章
27
Y币
heimuya 发表于 2015-4-24 20:19
感觉问题总是没得到解决,然后就没人管了.........

html, body{
        background-color: transparent;
}

这样设置就可以起作用了,html默认给了背景色白色
1
帖子
0
勋章
29
Y币
奇劭阳 发表于 2018-5-4 14:05
openFrame也没法背景透明   是什么情况   在frame页面里设置  body{
               background-color: tra ...

去掉api.css
0
帖子
0
勋章
29
Y币
去掉api.css中的html,body {
        -webkit-touch-callout:none;
        -webkit-text-size-adjust:none;
        -webkit-tap-highlight-color:rgba(0, 0, 0, 0);
        -webkit-user-select:none;
        background-color: #f2f2f2;---这一条需要注释
}
123
您需要登录后才可以回帖 登录

本版积分规则