收藏
回答

swiper控件如何调整高度?


如图swiper控件的height设置无效 一直是默认的150.

这里调整宽度有效,高度无效,求解~

回答关注问题邀请回答
收藏

1 个回答

  • 是小白啊
    是小白啊
    2019-03-22

    麻烦提供下代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2019-03-22
    有用
    回复 5
    • 2019-03-22

      好的 我贴下~

      2019-03-22
      回复
    • 2019-03-22
      .swiper-item{
        display: block;
        height: 250px;
      }
      .swiper{
        height: 250px;
      }


      https://developers.weixin.qq.com/s/SJmCX3mU747V

      2019-03-22
      回复
    • 2019-03-22回复

      我的代码不好贴,拿官方例子改了下 和我的情况是一样的

      2019-03-22
      回复
    • 是小白啊
      是小白啊
      2019-03-22回复

      需要设置高度

      2019-03-22
      1
      回复
    • 2019-03-22回复是小白啊

      多谢耐心解惑,是我犯二了~。~

      2019-03-22
      回复
登录 后发表内容