[英]How hide “timeline” from Facebook page plugin on responsive desing?
I'm using "@media only" on my css file to get two diferent styles. 我在css文件上使用“仅@media”来获得两种不同的样式。
In my desktop vercion I have the Fecebook page plugin showing the "timeline" of the page, but I want to hide the "timeline" when "@media only" condition load the style of mobile vercion. 在我的桌面版本中,我有Fecebook页面插件,显示页面的“时间轴”,但是当“ @media only”条件加载移动版本时,我想隐藏“时间轴”。
There is a way to manipulate the "timeline" atribute with jquery? 有没有一种方法可以使用jquery操纵“时间轴”属性?
According to the Facebook terms, you are not allowed to hide elements of a Social Plugin. 根据Facebook的条款,不允许您隐藏社交插件的元素。 But you can do the following: 但是您可以执行以下操作:
FB.XFBML.parse('page-plugin-id')
to parse the Plugin again, with the new attributes 使用FB.XFBML.parse('page-plugin-id')
再次解析具有新属性的插件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.