去掉“搜一搜”后,让“查看新贴”等按钮居中

去掉“搜一搜”后,原来与“搜一搜”同行的“查看新贴”、“热门话题”、“发帖排行”、“用户列表”等按钮顺势都移动到了左边,如果想让这些按钮居中,要这样来操作:
在后台风格界面模板总管理-page_index界面风格-template.html(0)里面,找到

程序代码 程序代码
<div style="float:left;padding:3px 0px;height:28px;text-indent:20px;" >
<a href="query.asp?stype=3&pSearch=0&nSearch=0">查看新贴</a>
<font face="Wingdings" color="666666">v</font>  
<a href="query.asp?stype=4&pSearch=0&nSearch=0">热门话题</a>
<font face="Wingdings" color="666666">v</font>
<a href="infolist.asp?t=toplist&orders=1">发贴排行</a>
<font face="Wingdings" color="666666">v</font>
<a href="infolist.asp?t=toplist&orders=7">用户列表</a>
</div>

文章先在上面代码里的红色部分做:)去掉“float:left;”(float只有none|left|right属性,没有center属性),再去掉定义文本距离左边界的“text-indent:20px;”,再给上面所有对代码镶套上<div align="center"></div>就OK了。

程序代码 程序代码
<div align="center">
<div style="padding:3px 0px; height:28px;" >
<a href="query.asp?stype=3&pSearch=0&nSearch=0">查看新贴</a>
<font face="Wingdings" color="666666">v</font>  
<a href="query.asp?stype=4&pSearch=0&nSearch=0">热门话题</a>
<font face="Wingdings" color="666666">v</font>
<a href="infolist.asp?t=toplist&orders=1">发贴排行</a>
<font face="Wingdings" color="666666">v</font>
<a href="infolist.asp?t=toplist&orders=7">用户列表</a>
</div>
</div>

原文地址:https://www.cnblogs.com/cy163/p/637158.html