Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
覆盖wordpress插件的iframe固定大小iz短码_Wordpress_Css_Iframe_Css Transitions - Fatal编程技术网

覆盖wordpress插件的iframe固定大小iz短码

覆盖wordpress插件的iframe固定大小iz短码,wordpress,css,iframe,css-transitions,Wordpress,Css,Iframe,Css Transitions,我正在为fb提要使用wordpress插件。它给出了一个简短的代码,您可以在其中设置宽度和高度。但仅以像素为单位。是否有机会将其设置为%(宽度和高度100%) 下面是一个代码: [efb_likebox fanpage_url="SPIBiH" box_width="336" box_height="487" locale="en_US" responsive="1" show_faces="1" show_stream="1" hide_cover="0" small_header="0" h

我正在为fb提要使用wordpress插件。它给出了一个简短的代码,您可以在其中设置宽度和高度。但仅以像素为单位。是否有机会将其设置为%(宽度和高度100%)

下面是一个代码:

[efb_likebox fanpage_url="SPIBiH" box_width="336" box_height="487" locale="en_US" responsive="1" show_faces="1" show_stream="1" hide_cover="0" small_header="0" hide_cta="0" animate_effect="fadeIn" ]

这将使用iframe创建HTML。我不知道如何在css中覆盖这个大小

这里已经回答了:
https://stackoverflow.com/questions/583753/using-css-to-affect-div-style-inside-iframe

您不能直接使用CSS将iframe作为目标,但可以添加一些javascript,将类添加到可以作为目标的iframe中