最近大家使用社区模板的朋友都出现了天气预报无法正常显示的问题,解决办法很简单只要修改一下代码就可以解决了。
修改ndsns\common下的pubsearchform这个文件就可以了。
把这段代码<iframe src="http://weather.hao.360.cn/index_small_userdata_20100701.html" width="380" height="22" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" allowtransparency="true" scrolling="no">
替换为你的代码<iframe src="http://m.weather.com.cn/n/pn1/weather.htm" width="235" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
就可以了
代码获取地址:
http://360.weather.com.cn/
效果看社区首页