欧美三级国产三级日韩三级_亚洲熟妇丰满大屁股熟妇_欧美亚洲成人一区二区三区_国产精品久久久久久模特

微信小程序--頭部導(dǎo)航滑動 - 新聞資訊 - 云南小程序開發(fā)|云南軟件開發(fā)|云南網(wǎng)站建設(shè)-昆明葵宇信息科技有限公司

159-8711-8523

云南網(wǎng)建設(shè)/小程序開發(fā)/軟件開發(fā)

知識

不管是網(wǎng)站,軟件還是小程序,都要直接或間接能為您產(chǎn)生價值,我們在追求其視覺表現(xiàn)的同時,更側(cè)重于功能的便捷,營銷的便利,運營的高效,讓網(wǎng)站成為營銷工具,讓軟件能切實提升企業(yè)內(nèi)部管理水平和效率。優(yōu)秀的程序為后期升級提供便捷的支持!

您當(dāng)前位置>首頁 » 新聞資訊 » 小程序相關(guān) >

微信小程序--頭部導(dǎo)航滑動

發(fā)表時間:2021-3-31

發(fā)布人:葵宇科技

瀏覽次數(shù):58

項目需求:實現(xiàn)頭部導(dǎo)航,可左右滑動。

  1. <view class="top-news">
  2. <view class="self-box">
  3. <view class="img-self">
  4. <image src="../../images/self.jpg"></image>
  5. </view>
  6. </view>
  7. <view class="self-add">
  8. <view class="img-add">
  9. <image src="../../images/add.jpg"></image>
  10. </view>
  11. </view>
  12. <view class="nav-scroll">
  13. <scroll-view class="scroll-view_H" scroll-x="true" style="width: 100%">
  14. <text wx:for="{{section}}" wx:key="id" id="{{item.id}}" catchtap="handleTap" class="nav-name {{item.id == currentId ? 'nav-hover' : ''}}">{{item.name}}</text>
  15. </scroll-view>
  16. </view>
  17. </view>
  1. /* 頭部滑動導(dǎo)航 */
  2. .top-news{width:100%;height: 50px;border-bottom:1px solid #349393;position: fixed;top:0;left:0;z-index: 999;overflow: hidden;background: linear-gradient(to right,#f3f3f3,#fff,#f3f3f3); }
  3. .self-box{position: absolute;left:0;height:50px;width:40px;display: inline-block;background: #fff;}
  4. .img-self{width:30px;height: 30px;padding-top:10px;padding-left: 5px;}
  5. .img-self image{width:100%;height: 100%;}
  6. .self-add{position: absolute;right:0;height:50px;width:40px;display: inline-block;background: #fff;}
  7. .img-add{width:30px;height: 30px;padding-top:10px;padding-left: 5px;}
  8. .img-add image{width:100%;height: 100%;}
  9. .scroll-view_H{white-space:nowrap;width: 100%;padding:6px 40px 0;box-sizing: border-box;}
  10. .nav-name{display:inline-block;font-size:16px;color: #2b2e33;border-bottom: 2px solid transparent;padding:10px;}
  11. .nav-hover{color: #349393;/* border-bottom: 2px solid #f06000; */}
  1. data: {
  2. section: [
  3. { name: '精選', id: '1001' }, { name: '黃金單身漢', id: '1032' },
  4. { name: '綜藝', id: '1003' }, { name: '電視劇', id: '1004' },
  5. { name: '電影', id: '1005' }, { name: '少兒', id: '1021' }
  6. ]
  7. },

相關(guān)案例查看更多