日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

手机端通讯录制作,字母索引查找

發(fā)布時間:2023/12/14 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 手机端通讯录制作,字母索引查找 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

首先先引入 flexible.js 手機端人適配,引入jquery插件,引入 jquery.charfirst.pinyin,js獲取第一個漢字首字母

?

HTML部分內(nèi)容

sort.css部分

?

sort。css的部分代碼

#letter{

????width:?100px;

????height:?100px;

????border-radius:?5px;

????font-size:?75px;

????color:?#555;

????text-align:?center;

????line-height:?100px;

????background:?rgba(145,145,145,0.6);

????position:?fixed;

????left:?50%;

????top:?50%;

????margin:-50px?0px?0px?-50px;

????z-index:?99;

????display:?none;

????font-family:?PingFangSC-Medium;

}

#letter?img{

????width:?50px;

????height:?50px;

????float:?left;

????margin:25px?0px?0px?25px;

}

.sort_box{

????width:?100%;

????overflow:?hidden;

}

.sort_list{

????padding:?.1rem?.4rem?0;

????position:?relative;

????height:?1.2rem;

????line-height:?1.2rem;

????background:?#fff;

????color:?#222;

????font-size:?16px;

????color:?#000;

????box-sizing:?content-box;

}

?

.sort_list?.num_logo{

????width:?50px;

????height:?50px;

????border-radius:?10px;

????overflow:?hidden;

????position:?absolute;

????top:?5px;

????left:?20px;

}

.sort_list?.num_name{

????color:?#000;

????/*border-bottom:?.5px?solid?#EBEBEB;*/

}

?

.sort_letter{

????height:?.6rem;

????line-height:?.6rem;

????padding-left:?.4rem;

????color:#000;

????font-size:?.28rem;

????/*border-bottom:1px?solid?#ddd;*/

}

.initials{

????position:?fixed;

????display:?inline-flex;

????flex-direction:?column;

????justify-content:?center;

????align-items:?center;

????top:?1rem;

????right:?.3rem;

????height:?100%;

????width:?16px;

????padding-right:?0;

????text-align:?center;

????font-size:?0.22rem;

????line-height:?0.32rem;

????font-family:?PingFangSC-Medium;

????z-index:?99;

????background:?transparent;

????color:?#222;

}

.initials?li+li{

????padding-top:0.04rem;

}

?

效果圖:

請大佬幫助,我只是小白一只,只會使用有些地方還不是明白

總結(jié)

以上是生活随笔為你收集整理的手机端通讯录制作,字母索引查找的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。