Wednesday, 15 February 2012

javascript - Change font size for Facebook Comments Social Plugin – Number of Comments on page -


So I am trying to increase the font size when displaying the number of annotations for a given page. I am using the IFrame code provided by Facebook. Initially I added CSS features directly to IFrame, but it was unsuccessful. From that point I am trying to use JavaScript to change the style of IF I have any ideas?

  & lt; Iframe id = "FBFrame" src = "& lt ;? php echo $ FBURL ;;> Scrolling = "no" frameborder = "0" style = "border: none; overflow: hidden; width: 130px; height: 16px;" AllowTransparency = "true" & gt; & Lt; / Iframe & gt; & Lt; Script & gt; Document.getElementById ('FBFrame'). Style.fontSize = "20px"; & Lt; / Script & gt;    

Javascript will be blocked by CSS after blocking

Something like this

  #facebook body {// facebook] Document ID gives font size to facebook iframe content: 20px}   

should work < / P>

No comments:

Post a Comment