zoukankan      html  css  js  c++  java
  • 本站样式代码参考

    本站样式代码参考

    博客签名

        <div class="div_masklayer" id="div_masklayer"></div>
        <div class="div_popup" id="Div_popup"> <img class="img_zfb" id="img_zfb" src="http://images.cnblogs.com/cnblogs_com/ttzzyy/1217900/o_11.png">
          <p class="mid">您的资助是我最大的动力!<br>金额随意,欢迎来赏!</p>
        </div>
        <div class="autograph">
          <p> <span style="display: none"> 如果,您认为阅读这篇博客让您有些收获,不妨点击一下右下角的<a id="btnRecommendMyBlog">【<strong>推荐</strong>】</a>按钮。<br>
            </span> 如果,您希望更容易地发现我的新博客,不妨点击一下绿色通道的<a id="guanzhuwo">【<strong>关注我</strong>】</a>。</p>
          <div class="blogds">如果,想给予我更多的鼓励,<span class="bold">求打</span> <a class="btn_donate" style="position: absolute" id="btn_donate" title="Donate 打赏" target="_self"></a> </div>
          <p>因为,我的写作热情也离不开您的肯定支持,感谢您的阅读,我是【<strong>Heaton_陶</strong>】!</p>
        </div>
    

    页面定制css

        /*生成博客目录的CSS*/
        #uprightsideBar{
        font-size:14px;
        font-family:Arial, Helvetica, sans-serif;
        text-align:left;
        position:fixed;/*将div的位置固定到距离top:50px,right:0px的位置,这样div就会处在最右边的位置,距离顶部50px*/
        top:400px;
        right:53px;
         auto;
        height: auto;
        
        
        }
        #sideBarTab{
        float:left;
        30px;
        border:1px solid #e5e5e5;
        border-right:none;
        text-align:center;
        background:rgb(238, 130, 238);
        }
        
        #sideBarContents{
        float:left;
        overflow:auto;
        overflow-x:hidden;!important;
        200px;
        min-height:108px;
        max-height:460px;
        border:1px solid #e5e5e5;
        border-right:none;
        background:#ffffff;
        }
        #sideBarContents dl{
        margin:0;
        padding:0;
        }
        
        #sideBarContents dt{
        margin-top:5px;
        margin-left:5px;
        }
        
        #sideBarContents dd, dt {
        cursor: pointer;
        }
        
        #sideBarContents dd:hover, dt:hover {
        color:#A7995A;
        }
        #sideBarContents dd{
        margin-left:20px;
        }
        #back-to-top {
        background-color: #00CD00;
        bottom: 0;
        box-shadow: 0 0 6px #00CD00;
        color: #444444;
        padding: 10px 10px;
        position: fixed;
        right: 50px;
        cursor: pointer;
        }
        #divExpandViewArea{
        position: fixed;
        color: white;
        
        padding: 10px 10px;
        left: 0px;
        top: 547px;
        cursor: pointer;
        opacity: 0.9;
        background-color: #68228B;
        }
        
        #divCollapseViewArea{
        position: fixed;
        color: white;
        
        padding: 10px 10px;
        left: 0px;
        top: 586px;
        cursor: pointer;
        opacity: 0.9;
        background-color: #68228B;
        }
        /* 设置签名格式 */
        #MySignature {
        display: none;
        background-color: #B2E866;
        border-radius: 10px;
        box-shadow: 1px 1px 1px #6B6B6B;
        padding: 10px;
        line-height: 1.5;
        text-shadow: 1px 1px 1px #FFF;
        font-size: 16px;
        font-family: 'Microsoft Yahei';
        }
        /* 左侧最新随笔 */
        #CatList_LinkList_0_Link_0{
        
        }
        #CatList_LinkList_0_Link_1{
        
        margin-top:10px;
        }
        #CatList_LinkList_0_Link_2{
        
        margin-top:10px;
        }
        #CatList_LinkList_0_Link_3{
        
        margin-top:10px;
        
        }
        #CatList_LinkList_0_Link_4{
        
        margin-top:10px;
        
        }
        #CatList_LinkList_0_Link_5{
        
        margin-top:10px;
        
        }
        #CatList_LinkList_0_Link_6{
        
        margin-top:10px;
        
        }
        #CatList_LinkList_0_Link_7{
        
        margin-top:10px;
        
        }
        #CatList_LinkList_0_Link_8{
        
        margin-top:10px;
        
        }
        /*推荐和反对*/
        #div_digg {
        padding: 10px;
        position: fixed;
        _position: absolute;
        z-index: 1000;
        bottom: 20px;
        right: 0;
        _right: 17px;
        border: 1px solid #D9DBE1;
        background-color: #FFFFFF;
        filter: alpha(Opacity=80);
        -moz-opacity: 1;
        opacity: 1;
        }
        
        .icon_favorite {
        background: transparent url('http://files.cnblogs.com/files/jackson0714/kj.gif') no-repeat 0 0;
        padding-left: 16px;
        }
        /*签名*/
        <style type="text/css">
        
            * {
                margin:0;
                padding:0;
            }
            html {
                _background:url(about:blank);
            } /**//* 阻止闪动 in IE6 , 把空文件换成about:blank , 减少请求 */
            body {
                background:#fff;
                font: 12px/1.5 Tahoma, Geneva, \5b8b\4f53, sans-serif;
                height:100%;
            }
            .custom_hide {
                display: none;
            }
            .mid {
                font-size:18px;
                font-weight:bold;
                color:#f9f;
                text-align:center;
                vertical-align:top;
                line-height:24px;
            }
            /**//** 遮罩层 **/
            .div_masklayer {
                background:#000;
                display:none;
                filter:alpha(opacity = 50);
                opacity:0.5;
                top:0;
                left:0;
                height:100%;
                100%;
                z-index:999;
                position:fixed;
                _position:absolute;
                _left: expression(documentElement.scrollLeft + documentElement.clientWidth - this.offsetWidth);
                _top: expression(documentElement.scrollTop + documentElement.clientHeight - this.offsetHeight);
            }
            /**//** 弹出层 **/
            .div_popup {
                display:none;
                300px;
                z-index:1000;
                background:#0aa;
                left:50%;
                top:50%;
                position:fixed!important;
                margin-left:-150px !important;
                _position:absolute;
                _top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat')? documentElement.scrollTop + (document.documentElement.clientHeight - this.offsetHeight)/2: /**//*IE6*/ 
        document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2); /**//*IE5 IE5.5*/
            }
            /*图片样式*/
            .img_zfb {
                100%;
                height:100%;
            }
            /*签名*/
            .autograph {
                padding: 15px;
                background-color: #FFF7DC;
                border: 2px solid #FFBFBF;
                font-family:"Courier New", 微软雅黑, Consolas, Arial, 宋体;
            }
            .custom_hide {
                display: none;
            }
            .blogds {
                height:82px;
                line-height:82px;
            }
            a.btn_donate {
                display: inline-block;
                 82px;
                height: 82px;
                background: url("http://files.cnblogs.com/files/yanweidie/btn_reward.gif") no-repeat;
                _background: url("http://files.cnblogs.com/files/yanweidie/btn_reward.gif") no-repeat;
                -webkit-transition: background 0s;
                -moz-transition: background 0s;
                -o-transition: background 0s;
                -ms-transition: background 0s;
                transition: background 0s;
            }
            a.btn_donate:hover {
                cursor:pointer;
                background-position: 0px -82px;
                background-color:unset !important;
            }
            .bold {
                font-weight: bold;
            }
        
        
        </style>
        /*签名结束*/
        #header{display:none;}
        #test33 ul {
        margin: 0;
        padding: 0;
        list-style-type: none; /*去除li前的标注*/
        background-color: #333;
        overflow: hidden; /*隐藏溢出的部分,保持一行*/
        }
        
        
        #test33 li {
        float: left; /*左浮动*/
        }
        
        
        #test33 li a, .dropbtn {
        display: inline-block; /*设置成块*/
        color: white;
        text-align: center;
        text-decoration: none;
        padding: 14px 16px;
        }
        
        
        #test33 li a:hover, .dropdown:hover .dropbtn { /*鼠标移上去,改变背景颜色*/
        background-color: blue;
        }
        
        
        #test33 .dropdown {
        /*display:inline-block将对象呈递为内联对象,但是对象的内容作为块对象呈递。旁边的内联对象会被呈递在同一行内,允许空格。*/
        display: inline-block;
        }
        
        
        #test33 .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min- 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        }
        
        
        #test33 .dropdown-content a {
        display: block;
        color: black;
        padding: 8px 10px;
        text-decoration:none;
        }
        
        
        #test33 .dropdown-content a:hover {
        background-color: #a1a1a1;
        }
        
        
        #test33 .dropdown:hover .dropdown-content{
        display: block;
        }
        body {
        background-color: #efefef;
        background-image: url(https://unsplash.it/1600/900?random);
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center 0;
        background-size: cover;
        }
    

    首页html代码

    返回顶部

        <a href="http://www.cnblogs.com/ttzzyy/" title="我的博客主页" target="_Blank" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#64CEAA; color:#fff; position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
        
        <div id="divExpandViewArea" onclick="$('#main_container').css({'margin-left':'-200px'});$('#leftmenu').css({'display':'none'});">扩大</div>
        
        <div id="divCollapseViewArea" onclick="$('#main_container').css({'margin-left':'0px'});$('#leftmenu').css({'display':'block'});">缩小</div>
        <div id="i1" style="color:red;font-size:13px;padding:5px;">大江东去,浪淘尽,千古风流人物。故垒西边,人道是,三国周郎赤壁。乱石穿空,惊涛拍岸,卷起千堆雪。江山如画,一时多少豪杰。遥想公瑾当年,小乔初嫁了,雄姿英发。羽扇纶巾,谈笑间,樯橹灰飞烟灭。故国神游,多情应笑我,早生华发。人生如梦,一尊还酹江月。</div>
        <script>
            function func(){
                var tag = document.getElementById('i1');
                var content = tag.innerText;
                var f = content.charAt(0);
                var l = content.substring(1,content.length);
                var new_content = l + f;
                tag.innerText = new_content;
            }
            setInterval('func()',1600);
        </script>
        
        <!--页面导航开始-->
        <p style="text-align: center;font-size:35px;margin-bottom:19px;margin-top:20px;opacity: 0.5">Heaton_Tao</p>
        <div id="test33" >
            <ul style="margin-left:0px;margin-right: 0px;" class="test11" >
                <div class="dropdown">
                    <a href="https://www.cnblogs.com/" class="dropbtn"><span style="22px;opacity: 0.2;font-size: 18px" >博客园</span></a>
                    <div class="dropdown-content">
                    </div>
                </div>
        
                <div class="dropdown">
                    <a href="http://www.cnblogs.com/ttzzyy/" class="dropbtn"><span style="opacity: 0.2;font-size: 18px" >我的首页</span></a>
                    <div class="dropdown-content">
                    </div>
                </div>
        
                <div class="dropdown">
                    <a href="#" class="dropbtn">全部分类</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211618.html"  >1.Java设计模式</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1216405.html" >2.微服务</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1216517.html" >3.工具类</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211615.html" >4.Java基础</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211617.html" >5.JavaWEB</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211619.html" >6.前端基础</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211620.html" >7.大数据</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211621.html" >8.人工智能</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211623.html" >9.框架源码分析</a>
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1216516.html" >10.工具使用</a>
                    </div>
                </div>
        
                <div class="dropdown">
                    <a href="#" class="dropbtn">Java设计模式</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211618.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
        
                <div class="dropdown">
                    <a href="#" class="dropbtn">微服务</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1216405.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">工具类</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1216517.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">Java基础</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1217952.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">JavaWEB</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1217953.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">前端基础</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1217954.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">大数据</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211620.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">人工智能</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211621.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">框架源码分析</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1211623.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropbtn">工具使用</a>
                    <div class="dropdown-content">
                        <a class="menu" href="http://www.cnblogs.com/ttzzyy/category/1216516.html"  target="_Blank">1.简介</a>
                    </div>
                </div>
            </ul>
        </div>
        <!--页面导航结束-->   
    

    页脚HTML代码

        <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"6","bdPos":"right","bdTop":"400"},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
        
        <script type="text/javascript">
            // 博客签名脚本 //
            function btn_donateClick() {
                var DivPopup = document.getElementById('Div_popup');
                var DivMasklayer = document.getElementById('div_masklayer');
                DivMasklayer.style.display = 'block';
                DivPopup.style.display = 'block';
                var h = Div_popup.clientHeight;
                with (Div_popup.style) {
                    marginTop = -h / 2 + 'px';
                }
            }
        
            function MasklayerClick() {
        
                var masklayer = document.getElementById('div_masklayer');
                var divImg = document.getElementById("Div_popup");
                masklayer.style.display = "none";
                divImg.style.display = "none";
            }
        
            setTimeout(
                function () {
                    document.getElementById('div_masklayer').onclick = MasklayerClick;
                    document.getElementById('btn_donate').onclick = btn_donateClick;
                    var a_gzw = document.getElementById("guanzhuwo");
                    a_gzw.href = "javascript:void(0);";
                    $("#guanzhuwo").attr("onclick","follow('33513f9f-ba13-e011-ac81-842b2b196315');");
                }, 900);
        
        
        </script>
  • 相关阅读:
    linux操作提示:“Can't open file for writing”或“operation not permitted”的解决办法
    CSS中background:url(图片) 不能显示的问题
    CSS3background-size背景图片尺寸属性
    在GitHub上成果预览
    快速上手GitHub上传代码
    css布局模型(1)
    css+div浮动怎么让它在窗口大小变化时不改变位置
    node.js基于express框架搭建一个简单的注册登录Web功能
    node.js 安装使用http-server
    grunt安装与运行
  • 原文地址:https://www.cnblogs.com/ttzzyy/p/9049875.html
Copyright © 2011-2022 走看看