• taro: RichText 显示文章图片自适应


      const __html = `
      <p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">当我们在追逐理想生活时,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">我们在追逐什么?</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">回望过往,一座座城市,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">一幢幢摩天大楼粉墨登场,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">世界沉迷于对“高”的追逐。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">而今,面对城市林立的钢筋水泥丛林,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">在遮目的视野和层层压抑之中,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">人们开始向低密度探寻理想生活的真谛。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">在对低密度居住形态的追寻之中,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">人们发现有一种产品,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">它生长于都市中心,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">却永远与鸟语花香为伴,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">集城市的活力与墅境的优雅为一身。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">这就是住宅中的“奢侈品”——低密洋房。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><img src="http://static.fczx.com/a/202007/13/q/z/994648a2998d3bdd79835dc69002535c.jpg" width="624" height="494"/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">&nbsp;&nbsp;示意图</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">国投·襄阳府6层花园洋房</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">真正的理想生活</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">从这里开始生长</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">//</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><strong style="margin: 0px; padding: 0px; border: 0px;">没有宽阔的尺度</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><strong style="margin: 0px; padding: 0px; border: 0px;">称不上真正的低密生活</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">//</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">有赖于国投·襄阳府独特的理念,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">“洋房+高层”的双区规划,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">拉开了楼与楼的尺度,创造出最适宜的空间。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">29m的楼间距离,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">比23m的楼高多出6m,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">抛却高楼对视野的遮挡,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">让阳光给予每个人最极致的体贴。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><img src="http://static.fczx.com/a/202010/09/6/0/9910c5f6ea630497ad2eb941819d1b65.jpg" width="376" height="212"/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">示意图</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">//</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><strong style="margin: 0px; padding: 0px; border: 0px;">没有宽阔的尺度</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><strong style="margin: 0px; padding: 0px; border: 0px;">&nbsp; &nbsp;&nbsp;哪来安放双脚的天地&nbsp;&nbsp;&nbsp;&nbsp;</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">//</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">国投·襄阳府的宽阔尺度,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">给了园林设计师最大的发挥空间。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">“一堂两轴、三庭四巷”的园林景观,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">是“举目皆风景”的休憩雅境。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">这里可以是孩子们的游乐场,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">当然也可以是太太们的下午茶室。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">闲步于园林中的小径,呼吸着自然汲取的新氧,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">合乎理想的生活,随时可以兑现。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><img src="http://static.fczx.com/ueditor/php/upload/image/20200604/1591234955526992.jpg"/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">&nbsp;示意图</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">//</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><strong style="margin: 0px; padding: 0px; border: 0px;">没有宽阔的尺度</strong></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;"><strong style="margin: 0px; padding: 0px; border: 0px;">&nbsp; &nbsp;&nbsp;感受不到居住的美意&nbsp;</strong>&nbsp;&nbsp;</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">//</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal;"><br/></p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">适当的距离,就会产生美。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">国投·襄阳府低密度洋房社区,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">与少数人为邻,出入皆见礼序。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">不仅让生活不再拥挤,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">也让生活少了几分喧嚣与嘈杂,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">给予居者更宽阔的私享空间。</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">人与人之间,那种恰到好处的尺度,</p><p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; color: rgb(51, 51, 51); font-family: &quot;Microsoft YaHei&quot;, YaHei, SimHei, Hei, Arial, tahoma, arial, sans-serif; white-space: normal; text-align: center;">便是居住状态的理想感觉。</p><p><br/></p>
      `
    <RichText nodes={__html.replace(/img/gi, 'img style=" 100%; height: auto"')}></RichText>
  • 相关阅读:
    前端内容转译html
    检查数据接口返回数据合法性
    接口数据一致性校验工具
    白盒测试——私有接口测试
    服务端用例设计的思(tao)路!
    服务端的性能测试(一)
    Android移动网络如何抓取数据包
    使用loadrunner进行压力测试遇到的问题总结
    我的天呐,小明竟然被程序猿哥哥追着打
    python处理文本文件
  • 原文地址:https://www.cnblogs.com/Nyan-Workflow-FC/p/13846781.html
Copyright © 2020-2023  润新知