iframe height not working on wordpress page

百般思念 提交于 2020-01-03 03:16:29

问题


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.

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

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>

回答1:


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>



回答2:


What happens if you do like this?

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


来源:https://stackoverflow.com/questions/20793122/iframe-height-not-working-on-wordpress-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!