webApp开发-图标开关

Posted alan-alan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webApp开发-图标开关相关的知识,希望对你有一定的参考价值。

html

技术分享
<div class="bg_fff step"  ng-if="ifshowKh !=‘1‘">
<ul class="row  step_icon3" id="step_icon3">
    <li class="item step_type_1_off"></li>
    <div class="line col-20"></div>
    <li class="item step_type_2_on"></li>
    <div class="line col-20"></div>
    <li class="item step3_type_3_off"></li>
</ul>
<ul class="row step_desc3" id="step_desc3">
    <li class="item col-30">基本信息</li>
    <li class="item col-30">申请信息</li>
    <li class="item col-30">影像上传</li>
</ul>

</div>
View Code
技术分享
<div class="bg_fff step"  ng-if="ifshowKh==‘1‘">

<ul class="row  step_icon4" id="step_icon4">
    <li class="item"></li>
    <div class="line col-15"></div>
    <li class="item"></li>
    <div class="line col-15"></div>
    <li class="item"></li>
    <div class="line col-15"></div>
    <li class="item col-5"></li>
</ul>
<ul class="row step_desc4" id="step_desc4">
    <li class="item col-25">基本信息</li>
    <li class="item col-25">申请信息</li>
    <li class="item col-25">补充资料</li>
    <li class="item col-25">影像上传</li>
</ul>
View Code

 

css1.0

技术分享
/*  step_icon4 */
.step_icon4{
     padding:20px;
}
.step_icon4 div.line{
    
}

.line{
    width: 80px;
    border-top:1px solid #0076C1;
    margin-top:20px;
}
.step_icon4 li.item{
    width: 30%;
    height: 40px;
    text-align: center;
    padding-top: 10px;
}
.step_icon4 li.item:nth-of-type(1){
    background:url(../img/find_pw_on_1.png)  no-repeat center right;
    background-size: 27px auto;
}


.step_icon4 li.item:nth-of-type(2){
    background:url(../img/find_pw_off_2.png)  no-repeat center center;
    background-size: 27px auto;
}

.step_icon4 li.item:nth-of-type(3){
    background:url(../img/icon_s3.png)  no-repeat center center;
    background-size: 27px auto;
}

.step_icon4 li.item:nth-of-type(4){
    background:url(../img/icon_s4.png)  no-repeat center left;
    background-size: 27px auto;
}


.step_desc4{
    
}
.step_desc4 li.item{
    font: inherit;
    font-size: 100%; 
    padding:0px;
    height:32px;
    line-height:32px;
    
}
View Code

 

 

 

CSS2.0

/* step on/off  */

.step_type_1_on{
    background:url(../img/find_pw_on_1.png)  no-repeat center right !important;
    background-size: 27px auto !important;
}
.step_type_1_off{
    background:url(../img/find_pw_off_1.png)  no-repeat center right !important;
    background-size: 27px auto !important;
}
.step_type_2_on{
    background:url(../img/find_pw_on_2.png)  no-repeat center center !important;
    background-size: 27px auto !important;
}
.step_type_2_off{
    background:url(../img/find_pw_off_2.png)  no-repeat center center !important;
    background-size: 27px auto !important;
}
.step_type_3_on{
    background:url(../img/icon_s1-3.png)  no-repeat center center !important;
    background-size: 27px auto !important;
}
.step_type_3_off{
    background:url(../img/icon_s3.png)  no-repeat center center !important;
    background-size: 27px auto !important;
}
.step_type_4_on{
    background:url(../img/icon_s1-4.png)  no-repeat center right !important;
    background-size: 27px auto;
}
.step_type_4_off{
    background:url(../img/icon_s4.png)  no-repeat center right !important;
    background-size: 27px auto;
}

/* group2 */

.step3_type_1_on{
    background:url(../img/find_pw_on_1.png)  no-repeat center right !important;
    background-size: 27px auto !important;
}
.step3_type_1_off{
    background:url(../img/find_pw_off_1.png)  no-repeat center right !important;
    background-size: 27px auto !important;
}
.step3_type_2_on{
    background:url(../img/find_pw_on_2.png)  no-repeat center center !important;
    background-size: 27px auto !important;
}
.step3_type_2_off{
    background:url(../img/find_pw_off_2.png)  no-repeat center center !important;
    background-size: 27px auto !important;
}
.step3_type_3_on{
    background:url(../img/icon_s1-3.png)  no-repeat center left !important;
    background-size: 27px auto !important;
}
.step3_type_3_off{
    background:url(../img/icon_s3.png)  no-repeat center left !important;
    background-size: 27px auto !important;
}

 

以上是关于webApp开发-图标开关的主要内容,如果未能解决你的问题,请参考以下文章

ViewPager开关没有显示片段之间

Vue 2.0开发企业级移动端音乐WebAPP

WebApp开发框架Ionic+AngularJS+Cordova

全网稀缺Vue2.0高级实战独立开发专属音乐WebAPP

Android:BottomNavigationView第一个片段开关超级延迟

Jquery if复选框是否已选中Bootstrap开关