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


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

  • 相关阅读:
    yum命令速查
    5分钟理解编译系统
    Nginx(一)安装及启停
    Linux时间命令
    常用七种排序的python实现
    python迭代器、生成器、装饰器
    LeetCode【第217题】Contains Duplicate
    LeetCode【第1题】Two Sum
    python【第二十篇】Django表的多对多、Ajax
    不要问我DO在哪里?
  • 原文地址:https://www.cnblogs.com/cy163/p/637158.html
Copyright © 2020-2023  润新知