1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

laogui..问你点CSS的问题..

本帖由 iwish2007-10-11 发布。版面名称:前端开发

  1. iwish

    iwish Member

    注册:
    2006-05-20
    帖子:
    375
    赞:
    1
    [Copy to clipboard] [ - ]CODE:
    #entrynum {
    FONT-SIZE: 0px; FLOAT: right; MARGIN: 0px auto 10px; WIDTH: 100%
    }
    #entrynum A:link {
    BORDER-RIGHT: #b2c9d3 1px solid; PADDING-RIGHT: 6px; BORDER-TOP: #b2c9d3 1px solid; PADDING-LEFT: 6px; FONT-SIZE: 12px; BACKGROUND: #f7f9ff; FLOAT: left; PADDING-BOTTOM: 2px; BORDER-LEFT: #b2c9d3 1px solid; COLOR: #333; MARGIN-RIGHT: 3px; PADDING-TOP: 3px; BORDER-BOTTOM: #b2c9d3 1px solid; TEXT-DECORATION: none
    }
    #entrynum A:visited {
    BORDER-RIGHT: #b2c9d3 1px solid; PADDING-RIGHT: 6px; BORDER-TOP: #b2c9d3 1px solid; PADDING-LEFT: 6px; FONT-SIZE: 12px; BACKGROUND: #f7f9ff; FLOAT: left; PADDING-BOTTOM: 2px; BORDER-LEFT: #b2c9d3 1px solid; COLOR: #333; MARGIN-RIGHT: 3px; PADDING-TOP: 3px; BORDER-BOTTOM: #b2c9d3 1px solid; TEXT-DECORATION: none
    }
    #entrynum A:hover {
    FONT-SIZE: 12px; BORDER-LEFT-COLOR: #2e6ab1; BACKGROUND: #fff; BORDER-BOTTOM-COLOR: #2e6ab1; COLOR: #f60; BORDER-TOP-COLOR: #2e6ab1; BORDER-RIGHT-COLOR: #2e6ab1
    }
    #entrynum A:active {
    FONT-SIZE: 12px; BORDER-LEFT-COLOR: #2e6ab1; BACKGROUND: #fff; BORDER-BOTTOM-COLOR: #D4D0C8; COLOR: #f60; BORDER-TOP-COLOR: #2e6ab1; BORDER-RIGHT-COLOR: #2e6ab1
    }
    #entrynum A STRONG {
    COLOR: #f60
    }

    这个是.有链接时才显示小方块.没有链接时就不显了...

    dedecms的
    上一页.[1] 2 [3] [4] [5] [6] 下一页]
    当点到第二页时..就没有链接的了.之后就不显了..变成这样.[1] [3] [4] [5] [6] 下一页]

    帮帮我.
     
  2. wuhao

    wuhao New Member

    注册:
    2006-05-23
    帖子:
    265
    赞:
    0
    代码:
    #entrynum {
    FONT-SIZE: 0px; FLOAT: right; MARGIN: 0px auto 10px; WIDTH: 100%
    }
    #entrynum A:link {
    BORDER-RIGHT: #b2c9d3 1px solid; PADDING-RIGHT: 6px; BORDER-TOP: #b2c9d3 1px solid; PADDING-LEFT: 6px; FONT-SIZE: 12px; BACKGROUND: #f7f9ff; FLOAT: left; PADDING-BOTTOM: 2px; BORDER-LEFT: #b2c9d3 1px solid; COLOR: #333; MARGIN-RIGHT: 3px; PADDING-TOP: 3px; BORDER-BOTTOM: #b2c9d3 1px solid; TEXT-DECORATION: none
    }
    #entrynum A:visited {
    BORDER-RIGHT: #b2c9d3 1px solid; PADDING-RIGHT: 6px; BORDER-TOP: #b2c9d3 1px solid; PADDING-LEFT: 6px; FONT-SIZE: 12px; BACKGROUND: #f7f9ff; FLOAT: left; PADDING-BOTTOM: 2px; BORDER-LEFT: #b2c9d3 1px solid; COLOR: #333; MARGIN-RIGHT: 3px; PADDING-TOP: 3px; BORDER-BOTTOM: #b2c9d3 1px solid; TEXT-DECORATION: none
    }
    #entrynum A:hover {
    FONT-SIZE: 12px; BORDER-LEFT-COLOR: #2e6ab1; BACKGROUND: #fff; BORDER-BOTTOM-COLOR: #2e6ab1; COLOR: #f60; BORDER-TOP-COLOR: #2e6ab1; BORDER-RIGHT-COLOR: #2e6ab1
    }
    #entrynum A:active {
    FONT-SIZE: 12px; BORDER-LEFT-COLOR: #2e6ab1; BACKGROUND: #fff; BORDER-BOTTOM-COLOR: #D4D0C8; COLOR: #f60; BORDER-TOP-COLOR: #2e6ab1; BORDER-RIGHT-COLOR: #2e6ab1
    }
    #entrynum A STRONG {
    COLOR: #f60
    }

    最好可以给出两个页面的HTML代码方便调试
     
  3. iwish

    iwish Member

    注册:
    2006-05-20
    帖子:
    375
    赞:
    1
    这里改了什么?