Giter VIP home page Giter VIP logo

wxapp-mi-mall's Introduction

wxapp-mi-mall

仿小米商城小程序

踩坑记

  • 注意wx.navigateTowx.switchTab的区别
  • 在做分类页时,用到了scroll-view,但是随着页面内容的增多,滚动页面时,左边导航栏和右边分类内容都会滚动,这时设置整个页面和最外层view的样式为:
page,.container{
    height:100vh;
}

即设置整个页面为一屏的高度。

  • 内容超过一屏时,scroll-view产生滚动条,嗯,这严重影响美观,通过以下样式隐藏:
::-webkit-scrollbar{  
  height: 0;
  width: 0;
  color: transparent;
}
  • scroll-view的值应为它的子元素的id值,但是这个id不能以数字开头,否则会报错:id属性格式错误,如不能包含数字(还是要仔细看看开发手册::>_<::)

wxapp-mi-mall's People

Contributors

joewrights avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.