小弟想做个简单的导航,不会前端,以为简单,没想到没那么简单
![](014.gif)

PC端能看,分辨率缩小就不能看了,完全不能适应低分辨率和平板手机的页面,源代码如下:

  • - - - .home {
  • width: 100%;
  • height: 100%;
  • -webkit-box-orient: vertical;
  • -webkit-box-direction: normal;
  • -ms-flex-direction: column;
  • flex-direction: column;
  • background-color: #1d53d6
  • }
  • - .home,.list {
  • display: -webkit-box;
  • display: -ms-flexbox;
  • display: flex
  • }
  • - .list {
  • -ms-flex-wrap: wrap;
  • flex-wrap: wrap;
  • -webkit-box-pack: start;
  • -ms-flex-pack: start;
  • justify-content: flex-start;
  • -webkit-box-flex: 1;
  • -ms-flex: 1 1 0%;
  • flex: 1 1 0%;
  • -webkit-box-align: center;
  • -ms-flex-align: center;
  • align-items: center;
  • margin: 0 auto;
  • width: 90%;
  • -ms-flex-line-pack: center;
  • align-content: center;
  • overflow: auto;
  • margin-bottom: -80px
  • }
  • .list-item {
  • display: -webkit-box;
  • display: -ms-flexbox;
  • display: flex;
  • -webkit-box-orient: vertical;
  • -webkit-box-direction: normal;
  • -ms-flex-direction: column;
  • flex-direction: column;
  • -webkit-box-align: center;
  • -ms-flex-align: center;
  • align-items: center;
  • margin-bottom: 80px;
  • width: 148px
  • }
  • .list-item:hover .list-img {
  • -webkit-transform: scale(1.25);
  • transform: scale(1.25)
  • }
  • .img-container {
  • width: 110px;
  • height: 110px
  • }
  • - .list-img {
  • display: block;
  • width: 88px;
  • height: 88px;
  • margin: 0 auto;
  • -webkit-transition: all .2s ease-in-out;
  • transition: all .2s ease-in-out
  • }
  • - .list-title {
  • color: #fff;
  • font-size: .9em;
  • line-height: 1em;
  • width: 90%;
  • text-overflow: ellipsis;
  • white-space: nowrap;
  • overflow: hidden;
  • text-align: center
  • }
  • - **
  • - - - - ![]()
  • - - 电影
  • - - - ![]()
  • - - 短信
  • - - - ![]()
  • - - 音乐
  • - - - ![]()
  • - - 便签
  • - - - ![]()
  • - - 录音
  • -
  • - ![]()
  • - - 云盘
  • - ![]()
  • - - 设备
  • - ![]()
  • - - 阅读
  • - ![]()
  • - - 收藏
  • - ![]()
  • - - 相册
  • - ![]()
  • - - 设置
  • - - **
  • 复制代码