开发者

change fb:like to div element, possible?

开发者 https://www.devze.com 2023-03-23 16:46 出处:网络
Can this be replacd into <div class=\"facebook..., i do not wa开发者_运维知识库nt to use facebook prefix. i want to use div tag as it is more standard html

Can this be replacd into <div class="facebook... , i do not wa开发者_运维知识库nt to use facebook prefix. i want to use div tag as it is more standard html

<fb:like layout="box_count" show_faces="false" font=""></fb:like>


This is not possible.

Side note:

fb:like is actually standard html in a way. The fb: is a namespace and the like is an element in the fb namespace. This is just the same as a div being and element in the default html namespace. So you are actually using standard html.

You'll see the namespace declared in the html tag when you visit the page with the like button. The fb namespace appears along side the default html namespace:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" ... />

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号