冷博客果然新开了一篇文章,哈哈。想使用新浪微博的博客插件,又不想看到下面的sinaLOGO,那就随我来吧。

以下内容高手老鸟赶紧点击右上角小叉子

我们登陆新浪微博,在工具中找到博客挂件,选择其他博客或者wp博客,在选择html版插件,会得到默认代码如下(这个是冷博客的,你可以follow我滴)

<iframe id="sina_widget_1722851835" style="width:100%; height:500px;" frameborder="0" scrolling="no" src="http://v.t.sina.com.cn/widget/widget_blog.php?uid=1722851835&height=500&skin=wd_01&showpic=1"></iframe>

是一个iframe框架,引用页面http://v.t.sina.com.cn/widget/widget_blog.php,并且附加很多参数,如下:

uid=你的user id

height=高度

skin=皮肤

showpic=显示图片/显示文字链接

这些都在插件选项里有,但不能选择是否显示新浪logo,所以我们这样做

在style中,将高度改小,小于src中35像素,恰好为下方logo的位置即可,这个35是冷博客实验所得,你也可以改成其他的。

改成这样:

<iframe id="sina_widget_1722851835" style="width:100%; height:465px;" frameborder="0" scrolling="no" src="http://v.t.sina.com.cn/widget/widget_blog.php?uid=1722851835&height=500&skin=wd_01&showpic=1"></iframe>

 

image

效果图

p.s. 把这么无聊的东东写这么长真是不容易的呢