建站之星产品帮助

查看: 2891|回复: 1
打印 上一主题 下一主题

还是logo右边的空白问题

[复制链接]
跳转到指定楼层
1#
发表于 2012-6-24 20:08:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用的模板编号: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右边。。。。
2#
发表于 2012-6-24 20:41:07 | 只看该作者
您好,您可以参考建站之星,模板制作帮助文档对网站的框架进行剖析:http://bbs.sitestar.cn/thread-1179-1-1.html

并定位 您所添加的 的网页元素,且找到相关属性,进行调整即可。

定位请参考:http://www.sitestar.cn/help/article.php?id=96

该操作是需要您具备一些简单的美工软件及网页设计的基础知识才能进行操作的,详细属性请查阅 Css 手册。

Css 手册,您可以通过百度、谷歌及其它搜索引擎可以查询到。

上海美橙科技信息发展有限公司 ( 沪ICP备11006888号-4 )

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