- 博客(2)
- 收藏
- 关注
原创 如何实现嵌套在iframe里的html与vue中的操作进行互动
1.首先当iframe里的html加载完毕的时候将iframe的window对象传递给vue 代码如下: // iframe里html里的代码 window.onload = function(){ try{ window.parent.onPreviewIframeReady(window); }catch(e){} } // vue里的代码 initStyleSet () { let that = this window.onPreviewIframeReady = function (windowOb
2020-06-04 15:01:25 499
原创 css3透明度渐变
.linear { background: -webkit-linear-gradient( top, rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.2) ); /* Safari 5.1 - 6 / background: -o-linear-gradient(bottom,rgba(0, 0, 0, 0),rgba(0, 0, 0, 0.2)); / Opera 11.1 - 12*/ background: -moz-linear-gradient( bottom, rgba(0,
2020-05-09 15:11:14 1291
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人