想做成个searchbox的样子,费了半天劲,怎么都还不好看,唉。。。 kzeng看看能不能帮着改改CSS,不行的话再改回block吧。
我原来改的就可以,这里是代码,主题用的是chinagreen,差不了多少, 关键是放到特定的div里,才不会出现现在的状况
<div id="header"><?php if ($logo) : ?><a href="<?php print url() ?>" title="Home"><img id="logo" src="<?php print($logo) ?>" alt="Home"/></a><?php endif; ?> <?php if ($site_name) : ?> <div class="site-name"><a href="<?php print url() ?>" title="Home"><?php print($site_name) ?></a></div> <?php endif;?><?php if ($site_slogan) : ?> <div class="site-slogan"><?php print($site_slogan) ?></div> <?php endif;?><div id="tabfloat"> <?php if (is_array($primary_links)) : ?><ul id="primary-links"><?php foreach ($primary_links as $link): ?><li><?php print $link?> </li><?php endforeach; ?></ul><?php endif; ?> </div><?php //print $search_box;?><!-- SiteSearch Google --><form action="http://www.google.com/custom" method="get" target="google_window" id="search-theme-form"><div><div id="search" class="container-inline"><div class="form-item"> <input type="hidden" name="domains" value="www.easywms.com" /> <input type="text" maxlength="255" name="q" id="edit-search-theme-form-keys" size="15" value="" title="Keywords" class="form-text" /></div><input type="submit" name="sa" id="edit-submit" value="Google Search" class="form-submit" /><input type="radio" checked="checked" name="sitesearch" value="on" /> <font size="-1" color="#000000">Web</font><input type="radio" name="sitesearch" value="www.easywms.com" /> <font size="-1" color="#000000">Easywms.com</font><input type="hidden" name="client" value="pub-5621113494915014" /> <input type="hidden" name="forid" value="1" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="hidden" name="oe" value="UTF-8" /> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:E6E6E6;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1" /> <input type="hidden" name="hl" value="en" /><br><!-- adsense Google --><script type="text/javascript"><!--google_alternate_ad_url = "Google Adsense";google_ad_client = "pub-xxxxxxxxxxxxxxx";google_ad_type = "text_image";google_ad_channel = "";google_ad_width = 468;google_ad_height = 15;google_ad_format = "468x15_0ads_al";google_color_border = "FFFFFF";google_color_bg = "FFFFFF";google_color_link = "008F00";google_color_url = "008F00";google_color_text = "000000";//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><!-- adsense Google --></div></div></form><!-- SiteSearch Google --></div><!--header ends-->
/** *@interface: http://www.easywms.com *@description: Web GIS World */
Thanks! 我就是直接把block放到header,然后print $header的。应该是CSS没控制好,我的CSS比较面。。。:(
-------------------------------------------------- 非常大米:http://www.verydummy.com/ --------------------------------------------------
对,一定要控制好div,如果div不配对,也会有这样的情况 /** *@interface: http://www.easywms.com *@description: Web GIS World */
把google search 的背景色改为透明吧,这样很难看 /** *@interface: http://www.easywms.com *@description: Web GIS World */
现在好多了? 受laomiao的启发,改用custom search了:)
嗯,好多啦 /** *@interface: http://www.easywms.com *@description: Web GIS World */
呵呵,不错不错:)
------------------- 欢迎访问我的blog: http://www.kzeng.info/ 如果不能访问,feed地址: http://feeds.feedburner.com/kzeng_stupid_words
header里的search
我原来改的就可以,这里是代码,主题用的是chinagreen,差不了多少,
关键是放到特定的div里,才不会出现现在的状况
<div id="header"><?php if ($logo) : ?>
<a href="<?php print url() ?>" title="Home"><img id="logo" src="<?php print($logo) ?>" alt="Home"/></a>
<?php endif; ?>
<?php if ($site_name) : ?>
<div class="site-name"><a href="<?php print url() ?>" title="Home"><?php print($site_name) ?></a></div>
<?php endif;?>
<?php if ($site_slogan) : ?>
<div class="site-slogan"><?php print($site_slogan) ?></div>
<?php endif;?>
<div id="tabfloat"> <?php if (is_array($primary_links)) : ?>
<ul id="primary-links">
<?php foreach ($primary_links as $link): ?>
<li><?php print $link?> </li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<?php //print $search_box;
?>
<!-- SiteSearch Google -->
<form action="http://www.google.com/custom" method="get" target="google_window" id="search-theme-form">
<div><div id="search" class="container-inline"><div class="form-item">
<input type="hidden" name="domains" value="www.easywms.com" />
<input type="text" maxlength="255" name="q" id="edit-search-theme-form-keys" size="15" value="" title="Keywords" class="form-text" />
</div>
<input type="submit" name="sa" id="edit-submit" value="Google Search" class="form-submit" />
<input type="radio" checked="checked" name="sitesearch" value="on" /> <font size="-1" color="#000000">Web</font>
<input type="radio" name="sitesearch" value="www.easywms.com" /> <font size="-1" color="#000000">Easywms.com</font>
<input type="hidden" name="client" value="pub-5621113494915014" />
<input type="hidden" name="forid" value="1" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="oe" value="UTF-8" />
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:E6E6E6;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1" />
<input type="hidden" name="hl" value="en" /><br>
<!-- adsense Google -->
<script type="text/javascript"><!--
google_alternate_ad_url = "Google Adsense";
google_ad_client = "pub-xxxxxxxxxxxxxxx";
google_ad_type = "text_image";
google_ad_channel = "";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "008F00";
google_color_url = "008F00";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- adsense Google -->
</div>
</div>
</form>
<!-- SiteSearch Google -->
</div>
<!--header ends-->
/**
*@interface: http://www.easywms.com
*@description: Web GIS World
*/
Thanks!
Thanks! 我就是直接把block放到header,然后print $header的。应该是CSS没控制好,我的CSS比较面。。。:(
--------------------------------------------------
非常大米:http://www.verydummy.com/
--------------------------------------------------
对,一定要控制好div
对,一定要控制好div,如果div不配对,也会有这样的情况
/**
*@interface: http://www.easywms.com
*@description: Web GIS World
*/
把google search
把google search 的背景色改为透明吧,这样很难看
/**
*@interface: http://www.easywms.com
*@description: Web GIS World
*/
现在好多了?
现在好多了? 受laomiao的启发,改用custom search了:)
--------------------------------------------------
非常大米:http://www.verydummy.com/
--------------------------------------------------
嗯,好多啦 /** *@interfa
嗯,好多啦
/**
*@interface: http://www.easywms.com
*@description: Web GIS World
*/
呵呵,不错不错:) -
呵呵,不错不错:)
-------------------
欢迎访问我的blog: http://www.kzeng.info/
如果不能访问,feed地址: http://feeds.feedburner.com/kzeng_stupid_words