|
经验分享:
比如a.html页面要使用openFrame方式弹窗b.html页面,实现半透明遮挡a.html效果
第一步:在b.html顶部设置
body{
background: transparent;
}
第二步:在a.html中openFrame参数中添加
bgColor:'rgba(255, 255, 255, 0.2)',
比如:
- function opentest() {
- api.openFrame({
- name : 'testframe',
- url : '../html/testtest.html',
- rect : {
- x : 0,
- y : 0,
- w : 'auto',
- h : 'auto'
- },
- bgColor:'rgba(255, 255, 255, 0.2)',
- pageParam : {
- program_ids : program_ids,
- nameTitle : nameTitle,
- type : 'pro'
- }
- });
- }
复制代码 |
|