发表于: 2019-12-29 23:52:27

1 1086


今天完成的事情

1.拆解出联系方式组件

<div class="contact">
    <div class="qq-left ng-scope" ng-if=" $state.current.name !='skill.preview' &amp;&amp; $state.current.name !='skill.school.skill' &amp;&amp; $state.current.name != 'skill.school.archive' &amp;&amp; $state.current.name !='skill.webResource'">
        <!-- ngRepeat: li in vm.contentQQ --><div class="right-bar right-bar-qq ng-scope" ng-repeat="li in vm.contentQQ">
            <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=88fa3addbb6b39f88da5f1de7ce80afae01e533fe7b45db2e177535f8d65eda9">
                <img src="http://pub.idqqimg.com/wpa/images/group.png">
            </a>
            <p class="ng-binding">QQ 18群</p>
        </div><!-- end ngRepeat: li in vm.contentQQ -->
        <div class="right-bar right-bar-phone">
            <a>
                <p><img src="http://jns.img.bucket.ks3-cn-beijing.ksyun.com/skill/skill_html/images/right-bar_11.png"></p>
                <p>010-59478634</p>
            </a>
        </div>
        <div class="right-bar-btn">
            <img class="img-1" src="http://jns.img.bucket.ks3-cn-beijing.ksyun.com/skill/skill_html/images/right-bar_07.png">
            <span>联系我们</span>
            <img src="http://jns.img.bucket.ks3-cn-beijing.ksyun.com/skill/skill_html/images/right-bar_15.png">
        </div>
        <div class="right-bar right-bar-adviser">
            <p><img src="http://jns.img.bucket.ks3-cn-beijing.ksyun.com/skill/skill_html/images/girl.png"></p>
            <p>修真院形象大使</p>
            <img src="http://jns.img.bucket.ks3-cn-beijing.ksyun.com/skill/skill_html/images/adviser.png" class="adviser-icon">
        </div>
    </div>
</div>>


2.拆解出样式并且根据情况作出调整

@import "class.css" ;

.contact {
    .qq-left {
        positionfixed;
        top50%;
        margin-top-80px;
        right-137px;
        z-index9999;
        width137px;
        background#59c196;
        text-aligncenter;
        border-radius5px;
        .right-bar:nth-of-type(1) {
            border-bottom2px solid #59c196;
        }
        .right-bar:nth-of-type(2) {
            border-top2px solid #59c196;
        }
        .right-bar-qq {
            padding-top20px;
        }
        .right-bar {
            padding10px 0 20px;
            background#fff;
            border4px solid #59c196;
            border-radius8px;
            a {
                text-decorationnone;
                img {
                    margin-right7px;
                }
                img {
                    max-width100%;
                }
            }
            p {
                font-size14px;
                color#59c196;
                margin10px 0 0;
            }
        }
        .right-bar-phone {
            background#fff;
            border4px solid #59c196;
            border-radius8px;
        }
        .right-bar-btn {
            displayblock;
            positionabsolute;
            left-27px;
            top40px;
            width27px;
            height116px;
            padding7px;
            font-size12px;
            color#fff;
            backgroundlinear-gradient(#78cca9#59c196);
            border1px solid #24a06c;
            border-rightnone;
            border-top-left-radius3px;
            border-bottom-left-radius3px;
            .img-1 {
                height10px;
            }
            .right-bar-btn img:nth-of-type(1) {
                margin-top-2px;
                margin-left-2px;
                margin-bottom4px;
            }
            .right-bar-btn img:nth-of-type(2) {
                margin-left2px;
                transformrotate(180deg);
            }
        }
        .right-bar-adviser {
            cursorpointer;
            p {
                font-size14px;
                color#59c196;
                margin10px 0 0;
                img {
                    cursordefault;
                }
            }
            .adviser-icon {
                positionabsolute;
                left1485px;
                top-200px;
                height564px;
                max-widthnone;
            }
        }
        .right-bar-adviser:hover {
            .adviser-icon {
                positionabsolute;
                left-484px;
                top-200px;
                height564px;
                max-widthnone;
            }
        }
    }
    .qq-left:hover {
        right0;
    }
}

@media only screen and (max-width767px) {
    .contact {
        displaynone;
    }
}


3.调整导航栏里的分布样式

舍弃掉使用栅格系统排列

给ul标签加上flex属性 并且两端对齐均匀排列

 .navbar-nav-ul {
                    floatright !important;
                    width100%;
                    displayflex;
                    justify-contentspace-between;


4.拆解出轮播图部分




明天计划的事

1.完成轮播图部分


2.完成其他主体内容


遇到的问题

1.联系方式组件的图片总是不显示

当时地址是 src="//pub.idqqimg.com/wpa/images/group.png"

根据官网文件里复制出来的

后面在前面添加了http只有才正常显示

http://pub.idqqimg.com/wpa/images/group.png

以后无论什么url地址一定要将http协议加上



今天的收获

1.在使用栅格系统的过程中感受到了一些他的局限性 

有时候不能很好的匹配要求 使用栅格系统反而是个累赘




返回列表 返回列表
评论

    分享到