How to make facebook comment box width 100%?

前端 未结 9 536
逝去的感伤
逝去的感伤 2021-01-18 00:27

i am using this code to put a facebook comment box to my page,



        
9条回答
  •  醉梦人生
    2021-01-18 00:53

    setTimeout(function run() {
        if ($('.fb-comments span:first-child, .fb-comments span iframe').length == 0)
            setTimeout(run, 1000);
        else
            $('.fb-comments span:first-child, .fb-comments span iframe')[1].style.width = "100%";
    }, 1000);
    

提交回复
热议问题