星期三
2011年12月28日
undefined
Pingdom測速網站:http://tools.pingdom.com/fpt/
<html ...... xmlns:expr='http://www.google.com/2005/gml/expr'>
xmlns:fb='http://ogp.me/ns/fb#'
<html ...... xmlns:expr='http://www.google.com/2005/gml/expr' xmlns:fb='http://ogp.me/ns/fb#'>
<body>
(若你用的是Google Blogger內建的範本,請找這段語法:<body expr:class='"loading" + data:blog.mobileClass'><div id='fb-root'/>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/zh_TW/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<b:if cond='data:blog.pageType != "static_page"'>
<div class='like'>
<fb:like expr:href="data:post.url" send="true" show_faces="true" width="450" font="arial"></fb:like>
</div>
</b:if>
<fb:like href="http://blog-me-sharon.blogspot.com/" send="true" layout="button_count" width="150" show_faces="false"></fb:like>
但因為必須將href="http://blog-me-sharon.blogspot.com/"改為 expr:href="data:post.url”,所以在修改後,這一行的語法會變成:
<fb:like expr:href="data:post.url" send="true" layout="button_count" width="150" show_faces="false"></fb:like>
接著,再把改好的語法,放進由藍色<if>包圍的中間,那麼前面整段語法會變成:
<b:if cond='data:blog.pageType != "static_page"'>
<div class='like'>
<fb:like expr:href="data:post.url" href="http://doctor-lin.blogspot.com/" send="true" layout="button_count" width="700" show_faces="false"></fb:like>
</div>
</b:if>
<html ...... xmlns:expr='http://www.google.com/2005/gml/expr'>
xmlns:fb='http://ogp.me/ns/fb#'
<html ...... xmlns:expr='http://www.google.com/2005/gml/expr' xmlns:fb='http://ogp.me/ns/fb#'>
<body>
(若你用的是Google Blogger內建的範本,請找這段語法:<body expr:class='"loading" + data:blog.mobileClass'><div id='fb-root'/>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/zh_TW/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<b:if cond='data:blog.pageType != "static_page"'>
<div class='like'>
<fb:like expr:href="data:post.url" send="true" show_faces="true" width="450" font="arial"></fb:like>
</div>
</b:if>
<fb:like href="http://blog-me-sharon.blogspot.com/" send="true" layout="button_count" width="150" show_faces="false"></fb:like>
但因為必須將href="http://blog-me-sharon.blogspot.com/"改為 expr:href="data:post.url”,所以在修改後,這一行的語法會變成:
<fb:like expr:href="data:post.url" send="true" layout="button_count" width="150" show_faces="false"></fb:like>
接著,再把改好的語法,放進由藍色<if>包圍的中間,那麼前面整段語法會變成:
<b:if cond='data:blog.pageType != "static_page"'>
<div class='like'>
<fb:like expr:href="data:post.url" href="http://doctor-lin.blogspot.com/" send="true" layout="button_count" width="700" show_faces="false"></fb:like>
</div>
</b:if>