iframe高度在wordpress页面上不起作用 [英] iframe height not working on wordpress page

查看:133
本文介绍了iframe高度在wordpress页面上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用wordpress和iFrame时遇到问题.

i'm having a problem with wordpress and iFrame.

我正在尝试构建应用程序,但高度无法正常工作.我更改了高度,但保持相同的高度,我无法弄清楚.我已经尝试了许多插件,但也无济于事.

I'm trying to frame an application and the height isn't working. I change the height yet it stays the same height and I cannot figure it out. I've tried numerous plugins, but will not help either.

宽度很好,但高度却很小,您必须滚动才能打扰我和潜在的客户.

The width works fine, but the heigh is just staying small, you have to scroll which bothers me and potential clients as well.

它适用于我以前的wordpress主题,但是现在我使用的是新的名为Mana的主题.

It worked on my old wordpress theme, but now i'm using a new one called Mana.

遗憾的是,我没有足够的声誉积分才能发布图片给您看.我无法终生解决这个问题.确实适用于任何应用程序.视频工作正常.数周以来,我一直在努力解决这个问题.我没有任何运气,任何帮助将不胜感激. iFrame代码也在下面.同样,宽度也可以,高度也可以.我非常确定它的主题,但是实际上对此没有任何支持,所以这是我的最后选择.

Sadly, I don't have enough reputation points to post a picture to show you. I cannot fix this for the life of me. Its with any application really. Videos work fine though. I've been trying to solve this for weeks. I've had no luck with anything, any help will be appreciated. The iFrame code is below as well. Also, the width works fine, its just the height. I'm pretty sure its the theme, but theres really no support for it so this is my last resort.

<iframe src="http://www.example.com/application" height="2000" width="750" frameborder="0"></iframe>

推荐答案

您可以尝试执行此操作,如下所示.我正在height上使用!important.

You can try this, as shown below. I am using an !important on height.

<iframe src="http://www.example.com/application" style="width:750px; height:2000px !important;" frameborder="0"></iframe>

这篇关于iframe高度在wordpress页面上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆