我想通过giphy在我网站的侧边栏上嵌入一个gif,但它出现在滚动条上,我想去掉它。你能帮帮忙吗?
这是它的样子(右上角):https://www.cinemarvellous.com/
代码如下:
<iframe src="https://giphy.com/embed/QxH7OHwznjUMBeq2Lc" width="218" height="93" frameborder="0" class="giphy-embed"></iframe>
发布于 2019-04-16 12:55:10
为iframe添加Css,如下所示:
<style>
//Chrome, Safari, Opera
.iframe ::-webkit-scrollbar { width: 0 !important }
//Firefox
.iframe { overflow: -moz-scrollbars-none; }
//Internet Explorer
.iframe { -ms-overflow-style: none; }
</style>
https://stackoverflow.com/questions/55694765
复制相似问题