|
我用的模板编号:2883 gyzp-110415-a21
按照帖子内容 http://bbs.sitestar.cn/viewthread.php?tid=3030&highlight=ogo 添加代码,并自行添加一些链接,
修改/wwwroot/template/gyzp-110415-a21/layout/layout.php 文件
<!-- 站点语言模块Start -->
<div id="top_link"></div>
<div class="switch_langbar">
<a href="#">非常时空 </a>
<a href="#">网上商城 </a>
<a href="#">武汉科士威 </a>
<a href='#' onclick='window.external.AddFavorite("http://www.zgcosway.com/","非常道财富系统")'>加入收藏</a>
<link rel="ShortcutIcon" href="favicon.ico">
<a href="http://www.zgcosway.com/">设为首页</a>
<?php include_once(P_INC.'/language_switch.php');?>
<form name="articlesearchform" id="articlesearchform" action="/index.php?
_m=mod_product&_a=prdlist" method="post"><span class="search_title">搜索</span><input name="prd_keyword" id="prd_keyword1" type="text" class="t_i" /><input
name="" type="submit" value="<?php _e('Search');?>" class="t_s"/></form>
<script type="text/javascript" language="javascript">
<!--
function check_articlesearch_info(thisForm)
{
if (/^\s*$/.test(thisForm.elements["prd_keyword1"].value))
{
alert("<?php _e('Please give me a keyword!')?>");
thisForm.elements["prd_keyword1"].focus();
return false;
}
return true;
}
-->
</script>
</div>
<!-- 站点语言模块End -->
css配置如下:/wwwroot/template/gyzp-110415-a21/css/style.css
/*--- 主体页面 ---*/
#main_con { width:960px; margin:0 auto; padding-top:15px; background:#FFF;text-align: center}
实际效果如下:
疑问:text-align: center 为何所有链接,包括搜索框都在右边了呢? 如何才能让这些链接均匀布置在logo右边。。。。 |
|