无法设置 wmode:“透明”致力于 SIFR 3
我一直在尝试使用 sIFR 来更改网页中的一些文本。它工作得很好,直到我尝试让它使用透明画布。我正在使用的代码如下。我不知道修复它。我看到很多人对 wmode: '透明' 提出这样的问题,这一切似乎都有效,但我的除外。有人可以帮我吗???
如果没有 wmode: 'transparent' 属性,它可以正常工作。当我包含该属性时,它不会激活 sIFR,我们会以普通 HTML 形式获取页面。
sIFR.replace(myriadPro, { 选择器: '#title1,#title3,#title5,#title7,#title9,#title11,#title13,#title15,#title17,#title19', css: [ '.sIFR-root {背景颜色:无;字体大小:45px;可见性:可见;文本装饰:无;颜色:#4C4843;光标:指针;}' ], wmode: '透明' });
I've been trying to use sIFR to change some text in my webpage. It works fine until I try to get it to use a transparent canvas. The code I'm using is as follow. I have no idea to fix it. I've seen a lot of people make this questions about wmode: 'transparent' and it all seems to work but mine. Can someone give me a hand???
Without the wmode: 'transparent' property it works fine. When I include the property it doesn't activate sIFR and we get the page as the normal HTML.
sIFR.replace(myriadPro, {
selector: '#title1,#title3,#title5,#title7,#title9,#title11,#title13,#title15,#title17,#title19',
css: [ '.sIFR-root {background-color:none;font-size:45px;visibility:visible;text-decoration:none;color:#4C4843;cursor:pointer;}' ],
wmode: 'transparent'
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
wmode: '透明',
透明:“true”
是我使用的并且有效。我将 sifr-config.js 放在 css: {...} 之后,
wmode: 'transparent',
transparent: 'true'
is what I used and it worked. I placed in the sifr-config.js after the css: {...},
可能与 CSS 中奇怪的
background-color:none
属性有关。Might have something to do with that odd
background-color:none
property in the CSS.透明后加逗号。
Add a comma after transparent.