zoukankan      html  css  js  c++  java
  • 文章标题的样式代码

    主要参考:http://www.cnblogs.com/houkai/p/3394402.html



     以下代码插入到【管理】-->【设置】-->【博客设置】-->【页面定制CSS代码】中:

    .postTitle  {
        background: -webkit-gradient(linear, 0 0, 0 100%, from(#eee), to(#aaa));
        background: -ms-linear-gradient(#eeeeee 0%,#aaaaaa 100%);
        background: -moz-linear-gradient(top, #eee, #aaa);
        font-size: 18px;
        margin-bottom: 3px;
    }
    #topics .postTitle  {
        font-size: 110%;
        font-weight: bold;
        border-bottom: 1px dashed #ccc;
        float: right;
        line-height:2.5em;font-size: 18px;
        width: 100%;
        clear:both;
    }
    .postTitle a:link, .postTitle a:visited, .postTitle a:active {
        color: #390;
        transition:all 0.4s linear 0s
    }
    .postTitle  a:hover {
        color: #F60;
        text-decoration: none;margin-left: 10px;
    }
    
    .entrylistPosttitle {
        background: -webkit-gradient(linear, 0 0, 0 100%, from(#eee), to(#aaa));
        background: -ms-linear-gradient(#eeeeee 0%,#aaaaaa 100%);
        background: -moz-linear-gradient(top, #eee, #aaa);
        font-size: 18px;
        margin-bottom: 3px;
    }
    #topics .entrylistPosttitle {
        font-size: 110%;
        font-weight: bold;
        border-bottom: 1px dashed #ccc;
        float: right;
        line-height:2.5em;font-size: 18px;
        width: 100%;
        clear:both;
    }
    .entrylistPosttitle a:link, .entrylistPosttitle a:visited, .postTitle2 a:active {
        color: #390;
        transition:all 0.4s linear 0s
    }
    .entrylistPosttitle   a:hover {
        color: #F60;
        text-decoration: none;margin-left: 10px;
    }
    View Code

     首页显示效果:                      博客页面显示效果:

          

    其中包含了动态效果。。。



    总结:

      博客首页标题的样式标签为postTitle和postTitle2,但两者之间关联性太大,经过调试,感觉以上代码显示效果最好

      另外,分类检索后的文章样式标签为entrylistPosttitle,为避免与postTitle相互影响,分开编写。


  • 相关阅读:
    ExtAspNet新版本发布v2.0beta4
    自己实现Rich Text Editor
    ExtAspNet应用技巧(五) 动态创建工具栏菜单
    IronPython的Hello World
    关于“跨语言调用”和“CLS(公共语言规范)”的一点体会
    文档,又是文档
    对项目目标的一点想法
    推荐一个WMI的查询分析器
    几个很不错的.NET 相关的FAQ和例子代码的连接
    用IronPython写winform程序
  • 原文地址:https://www.cnblogs.com/huangtao36/p/7605626.html
Copyright © 2011-2022 走看看