去掉“搜一搜”后,让“查看新贴”等按钮居中
2007-02-01 16:35
162 查看
去掉“搜一搜”后,原来与“搜一搜”同行的“查看新贴”、“热门话题”、“发帖排行”、“用户列表”等按钮顺势都移动到了左边,如果想让这些按钮居中,要这样来操作:
在后台风格界面模板总管理-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>
在后台风格界面模板总管理-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>
相关文章推荐
- Android 去掉Power键按钮 锁屏界面 休眠时间
- 无法显示 XML 页, 无法查看使用 XSL 样式表的XML 输入。请更正错误然后单击 刷新 按钮,或稍后重试
- 多按钮居中显示
- IE按钮文字垂直居中
- ImageButton 按钮查看商品详细信息
- 如何去掉MFC单文档右上角的关闭按钮
- 使用setImageEdgeInSet和setTitleEdgeInSet让按钮的图片和文字垂直居中上下显示
- IOS开发OC 如何将导航栏左侧系统自动生成的返回按钮的文字去掉,只保留小于号"<"图案
- jquery层居中,点击小图查看大图,弹出层居中代码,顶部层固定不动,滚动条滚动情况
- qt入门之窗口居中,没大小化按钮
- FF(火狐浏览器)下解决按钮的水平居中
- jQuery点击按钮弹出遮罩层且内容居中特效
- 【转载】ckeditor 中去掉\'浏览服务器\'按钮
- UINavigationController 返回按钮去掉文字
- input[type='submit']input[type='button']button等按钮在低版本的IE下面,去掉黑色边框的问题
- 去掉CPropertySheet的“应用”和“帮助”按钮并对齐剩余按钮
- 如何让按钮里的文字居中竖排
- 如何去掉子窗体的关闭按钮.右上角的那个X
- 居中文字,Bootstrap按钮
- 如何不允许用户使用浏览器的『后退按钮』查看前面缓存下来的页面。