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

标签 wordpress css iframe css-transitions

我正在为 fb feed 使用 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 添加可定位的类。

关于wordpress - 覆盖 wordpress 插件的 iframe 固定大小 iz 简码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46950269/

相关文章:

php - WooCommerce 如何自定义显示订单字段的默认内容?

html - 半页全宽样式CSS

javascript - Div 是不可见的,但会响应触摸

css - Mac Chrome 中的字体渲染错误,导致深色背景上的浅色(灰底白字)

html - 为什么 iframe 比 body 大? iframe 在 100vh 时添加垂直滚动条

php - “WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong” WooCommerce错误

php - 跳过一些产品的购物车页面重定向到结帐

jquery - 响应式移动 Bootstrap 菜单,移动内容

jquery - 从 iFrame 加载顶部框架中的页面

javascript - 如何使用 iframe 加载 html?