偶尔看到别人的Blog上有天气预报,感觉不错,搜索了一下,自己也很容易做到。
在配置里的公告框输入代码:
<iframe src="http://weather.qq.com/inc/ss44.htm" width="189" height="190" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
至于所在城市代码的选择,可以去http://weather.news.qq.com/查询,选择自己所在城市后,弹出的天气窗口地址栏可以看到代码。