缓存 css 以更新 facebook 中的样式


Caching css to update the style in facebook

Parse error: syntax error, unexpected '?'错误指向".css之后":

echo '<fb:recommendations bordercolor="'.$bordercolor.'" colorscheme="'.$colorscheme.'" recommendations="'.$recommTxt.'" height="'.$height.'" width="'.$width.'" header="'.$header.'" site="'.$site.' " css="'.'"<?php bloginfo( 'stylesheet_url' ); ?>/style.css?2"></fb:recommendations>';

我正在尝试对fb推荐框进行一些样式更改,因此css文件的完整路径不可行,因为文件将移动到具有不同域的不同服务器。

我可能忽略了单引号或双引号?我对这些不好..

你能指出/指导我纠正这一点吗? 谢谢

编辑#2

css="'.'"<?php bloginfo( 'stylesheet_url' ); ?>/style.css?2"

它已更新,但在火虫上我看到:

<fb:recommendations class=" fb_iframe_widget " clear"="" css="http://xxx.com/wp-content/themes/xxx/facebook.css?2></fb:recommendations></div> </div><!--/sidebar--> <div class=" site="xxx.com " header="false" width="245" height="" recommendations="true" colorscheme="White" bordercolor="#fdbc88">

看到很奇怪.

将其更改为:

css="'. bloginfo( 'stylesheet_url' ) . '/style.css?2"

只要它已经是 php 代码 - 你就不应该指定<?php