导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. ZakaryCode
    Z
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    ZakaryCode

    @ZakaryCode

    0
    声望
    3
    帖子
    550
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    ZakaryCode 关注

    ZakaryCode 发布的帖子

    • RE: 请教下Taro声明配置的Config接口eslint一直提示未使用

      把引用去掉,配置的类型改成

      config: Taro.Config = {
        navigationBarTitleText: '首页'
      }
      
      发布在 Taro
      Z
      ZakaryCode
    • RE: -webkit-box-orient: vertical;样式问题

      autoprefixer 自动帮你补全了样式,去掉了无用样式

      /*! autoprefixer: ignore next */
      
      /*! autoprefixer: off */
      

      这样的写法是在告诉插件,不要对这一行进行处理,或者是从这里开始关掉插件

      发布在 Taro
      Z
      ZakaryCode
    • RE: Flex 弹性布局H5和小程序端显示不一致

      @jayleco_m 在 Flex 弹性布局H5和小程序端显示不一致 中说:

      .goods-item {
      height: 250px;
      margin-bottom: 10px;

      .goods-cover {
      height: 100%;
      }

      .goods-info {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      padding-left: 20px;
      height: 100%;

      .goods-title {
        width: 100%;
        height: 85px;
        line-height: 43px;
        white-space: pre-line;
        word-wrap: break-word;
        overflow: hidden;
        word-break: break-all;
      }
      .goods-tags {
        width: 100%;
        padding: 10px 0;
        .at-tag {
          margin: 0 10px;
        }
      }
      
      .goods-price {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
        width: 100%;
        line-height: 40px;
        color: #e22d24;
      
        .mark {
          font-size: 24px;
        }
        .num {
          font-size: 36px;
        }
      }
      
      .line {
        width: 100%;
        border-bottom: 1px solid #f4f4f4;
      }
      

      }
      }

      2d7daae0-b7aa-4858-af36-ef5e1bce8696-image.png

      看起来你的代码木有给全,并不能复现问题哦。
      猜测是列表上的样式写的有问题,可以查一下 flex-direction 和相关属性。

      发布在 Taro UI
      Z
      ZakaryCode