Facebook like box widget not recognizing data-width attribute?

后端 未结 9 2572
醉话见心
醉话见心 2021-02-19 07:26

I just noticed today that the data-width attribute for the Facebook Like Box widget does not appear to be working. It looks like it is reverting to the default width. An example

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-19 08:06

    I fixed the width with a little CSS hack but it is only temporary. My hack is this:

    .fb-like-box iframe {
         width: your_width_in_px !important;
    }
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题