Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[修改] 简单天气预报,搜索框后面添加!

[复制链接]
农夫山白水 发表于 2011-10-25 13:09:46 | 显示全部楼层
我们虔诚的祈祷:年终的奖金只多不少;领导动情的承诺:新年的工作只少不多。
回复

使用道具 举报

天_空空 发表于 2011-10-25 13:18:16 | 显示全部楼层
不错不错((em:01))
回复

使用道具 举报

l250388178 发表于 2011-10-25 13:34:46 | 显示全部楼层
挤在北京,给首都添麻烦了……
回复

使用道具 举报

haorena 发表于 2011-10-25 13:38:55 | 显示全部楼层
学习一下
回复

使用道具 举报

cqbaobao 发表于 2011-10-25 13:44:56 | 显示全部楼层
  1. <td class="scbar_hot_td">
  2. <div id="scbar_hot">
  3. <!--{if $_G['setting']['srchhotkeywords']}-->
  4. <strong class="xw1">{lang hot_search}: </strong>
  5. <!--{loop $_G['setting']['srchhotkeywords'] $val}-->
  6. <!--{if $val=trim($val)}-->
  7. <!--{eval $valenc=rawurlencode($val);}-->
  8. <!--{block srchhotkeywords[]}-->
  9. <!--{if !empty($searchparams[0])}-->
  10. <a href="$searchparams[0]?q=$valenc&source=hotsearch{$srchotquery}" target="_blank" class="xi2">$val</a>
  11. <!--{else}-->
  12. <a href="search.php?mod=forum&srchtxt=$valenc&formhash={FORMHASH}&searchsubmit=true&source=hotsearch" target="_blank" class="xi2">$val</a>
  13. <!--{/if}-->
  14. <!--{/block}-->
  15. <!--{/if}-->
  16. <!--{/loop}-->
  17. <!--{echo implode('', $srchhotkeywords);}-->
  18. <!--{/if}-->
  19. </div>
  20. </td>
复制代码

修改为

  1. <td class="scbar_hot_td">
  2.      <div id="scbar_hot">
  3.       <!--{if $_G['setting']['srchhotkeywords']}-->
  4.        <strong class="xw1">{lang hot_search}: </strong>
  5.        <!--{loop $_G['setting']['srchhotkeywords'] $val}-->
  6.         <!--{if $val=trim($val)}-->
  7.          <!--{eval $valenc=rawurlencode($val);}-->
  8.          <!--{block srchhotkeywords[]}-->
  9.           <!--{if !empty($searchparams[0])}-->
  10.            <a href="$searchparams[0]?q=$valenc&source=hotsearch{$srchotquery}" target="_blank" class="xi2">$val</a>
  11.           <!--{else}-->
  12.            <a href="search.php?mod=forum&srchtxt=$valenc&formhash={FORMHASH}&searchsubmit=true&source=hotsearch" target="_blank" class="xi2">$val</a>
  13.           <!--{/if}-->
  14.          <!--{/block}-->
  15.         <!--{/if}-->
  16.        <!--{/loop}-->
  17.        <!--{echo implode('', $srchhotkeywords);}-->
  18.       <!--{/if}-->
  19.      </div>
  20.     </td>
  21.     <td class="scbar_weather_td">
  22.     <div id="weather"><iframe src="http://m.weather.com.cn/m/pn7/weather.htm " width="195" height="22" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe></div>
  23.     </td>
复制代码
.scbar_weather_td{width: 200px;}
<div id="weather">可以直接写成<div style="width: 200px">
同时把前面的

  1. <table cellspacing="0" cellpadding="0">
复制代码
修改为
  1. <table cellspacing="0" cellpadding="0" width="100%">
复制代码

回复

使用道具 举报

suyue 发表于 2012-2-29 10:45:39 | 显示全部楼层
ie和火狐都ok,但是360下严重错位,热搜词跑下一行了
回复

使用道具 举报

suyue 发表于 2012-2-29 10:46:40 | 显示全部楼层
ycxinxi 发表于 2011-8-12 11:47
调整好了,楼主这样修改下就好了
把代码放下这个下面不要放在这个下面,按照楼主的方法,360下有错位,其它 ...

刚好遇到这个问题,我试下
回复

使用道具 举报

suyue 发表于 2012-2-29 10:52:41 | 显示全部楼层
ycxinxi 发表于 2011-8-12 11:47
调整好了,楼主这样修改下就好了
把代码放下这个下面不要放在这个下面,按照楼主的方法,360下有错位,其它 ...

这样之后360下没有天气预报了((em:01))
回复

使用道具 举报

aokoman 发表于 2012-4-24 14:21:16 | 显示全部楼层
zcwy 发表于 2011-9-11 23:11
错位问题解决:将margin:7px 改成margin:11px 试试

演示:http://bbs.tl163.net

这都被你修好了
((em:10))
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-12 04:57 , Processed in 0.093946 second(s), 13 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表