weex a链接和text混排如何自动换行

weex text和text混排,想放在同一行,超出屏幕的内容如何自动换行

阅读 7.6k
5 个回答

flex-direction: column; 用这个属性就可以了,望采纳,谢谢。

<template>
  <div class="wrapper">
    <a  href="http://dotwe.org/raw/dist/3e0e40f9ddad79f98cd236753965ffd8.js">
      <text class="text">Jump</text>
    </a>
    <text>ssss</text>
  </div>
</template>

<style scoped>
  .wrapper {
    flex-direction: column;
  }

</style>

图片描述

遇到跟楼主一样的问题,现在解决了吗?

weex这点的确是比较坑,没有富文本组件,并且随着UI设计的需要等因素,迟早会有更复杂的要求,所以建议在native端自己扩展富文本组件。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题