


Solution to bugs in WeChat applet: Solution to the problem that the page using flex layout cannot be rendered normally in iOS9.X
The content of this article is about the solution to bugs in WeChat applet: the solution that the page cannot be rendered normally in iOS9.X using flex layout. It has certain reference value. Friends in need can refer to it. I hope it helps you.
When rendering the WeChat applet page, the iOS9. The performance is that the page content is not displayed or the page style is disordered.
Scenario 1: The article content page style is disordered
Page code
<view class='container'> <view class='articleTitle'>意外健康险索赔指引</view> <view class='somebodyNamed'>尊敬的客户,您好:</view> <view class='articleParagraph'>为及时收到保险赔款,请您认真阅读以下索赔指引,根据实际情况提供相关材料。</view> <view class='articleItem'>一、通用资料:</view> <view class='articleParagraph'>1、医疗材料:发票、用药清单、诊断证明、门诊病历、住院病历、出院小结、检查报告、他方已赔付证明(如社保报销单等)</view> <view class='articleParagraph'>2、领款账户信息、领款人身份证明(个人提供身份证、单位提供营业执照) 出险人为未成年人,提供监护人身份证、户口本或出生证明或收养关系证明 </view> <view class='articleParagraph'>3、委托领款:授权委托书、委托方及受托方身份证明</view> <view class='articleParagraph'>4、出险人身份证明</view> <view class='articleParagraph'>5、事故证明材料:</view> <view class='paragraphItem'>a.交通事故:行驶证、驾驶证、交通事故认定书、事故调解书</view> <view class='paragraphItem'>b.其他事故证明材料(公安、消防证明、安监证明、法院判决等)</view> <view class='articleParagraph'>6、涉及第三方赔偿,提供他方赔偿明细</view> <view class='articleItem'>二、残疾案件增加:</view> <view class='articleParagraph'>按意外险条款或保险合同约定的评残标准出具的伤残鉴定报告</view> <view class='articleItem'>三、死亡案件增加:</view> <view class='articleParagraph'>1、死亡证明、火化证明、户口注销证明、尸检报告</view> <view class='articleParagraph'>2、死者受益人(遗产继承人)人员清单及证明材料(公安部门出具的直系亲属关系证明、遗嘱、户口本、出生证明、结婚证、公证证明、其他证明)</view> <view class='articleItem'>四、疾病增加:</view> <view class='articleParagraph'>1、等待期出险的,提供历年保单</view> <view class='articleParagraph'>2、历史病历</view> <view class='articleParagraph'>3、重大疾病索赔,需提供病理检验报告及条款约定的其他证明材料</view> <view class='articleItem'>五、建筑施工人员团体意外险增加:</view> <view class='articleParagraph'>劳动合同、工资表或其它用工证明,工程分包合同及施工合同</view> <view class='articleItem'>六、借款人意外险增加:</view> <view class='articleParagraph'>借款合同、贷款余额证明等相关资料</view> <view class='articleItem'>七、旅游意外险增加:</view> <view class='articleParagraph'>旅行社当次出游行程表、机票或车票、护照,财产损失证明、物损清单、相关发票或购置交易记录、航班延误证明、登机牌等</view> <view class='articleItem'>八、不记名投保每个被保险人均分保额的保单需提供所有被保险人员信息、身份证明、关系证明</view> <view class='articleItem'>九、保险人需要的其他证明材料</view> </view>
Style code
.container { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-sizing: border-box; background-color: #e6eaed; overflow-x: hidden; } .articleTitle { width: 100%; text-align: center; font-size: 34rpx; /*font-weight: bold;*/ margin-top: 42rpx; margin-bottom: 32rpx; font-family: "PingFangSC-Medium"; } .somebodyNamed { font-family: "PingFangSC-Regular"; color: #333; line-height: 36rpx; font-size: 28rpx; width: 100%; } .articleParagraph { width: 100%; font-size: 28rpx; word-break: break-all; line-height: 36rpx; color: #666; font-family: "PingFangSC-Regular"; margin-top: 24rpx; } .articleItem { width: 100%; font-size: 28rpx; /*font-weight: bold;*/ word-break: break-all; margin-top: 40rpx; font-family: "PingFangSC-Medium"; } .paragraphItem { width: 91.5%; font-size: 28rpx; word-break: break-all; padding-left: 40rpx; font-family: "PingFangSC-Regular"; text-indent: 40rpx; color: #666; }
Solution: In the class Put another layer of view under the container's view, and set its Display to block. The code is as follows
<view class='container'> <view class='guid-content'> <view class='articleTitle'>意外健康险索赔指引</view> <view class='somebodyNamed'>尊敬的客户,您好:</view> <view class='articleParagraph'>为及时收到保险赔款,请您认真阅读以下索赔指引,根据实际情况提供相关材料。</view> <view class='articleItem'>一、通用资料:</view> <view class='articleParagraph'>1、医疗材料:发票、用药清单、诊断证明、门诊病历、住院病历、出院小结、检查报告、他方已赔付证明(如社保报销单等)</view> <view class='articleParagraph'>2、领款账户信息、领款人身份证明(个人提供身份证、单位提供营业执照) 出险人为未成年人,提供监护人身份证、户口本或出生证明或收养关系证明 </view> <view class='articleParagraph'>3、委托领款:授权委托书、委托方及受托方身份证明</view> <view class='articleParagraph'>4、出险人身份证明</view> <view class='articleParagraph'>5、事故证明材料:</view> <view class='paragraphItem'>a.交通事故:行驶证、驾驶证、交通事故认定书、事故调解书</view> <view class='paragraphItem'>b.其他事故证明材料(公安、消防证明、安监证明、法院判决等)</view> <view class='articleParagraph'>6、涉及第三方赔偿,提供他方赔偿明细</view> <view class='articleItem'>二、残疾案件增加:</view> <view class='articleParagraph'>按意外险条款或保险合同约定的评残标准出具的伤残鉴定报告</view> <view class='articleItem'>三、死亡案件增加:</view> <view class='articleParagraph'>1、死亡证明、火化证明、户口注销证明、尸检报告</view> <view class='articleParagraph'>2、死者受益人(遗产继承人)人员清单及证明材料(公安部门出具的直系亲属关系证明、遗嘱、户口本、出生证明、结婚证、公证证明、其他证明)</view> <view class='articleItem'>四、疾病增加:</view> <view class='articleParagraph'>1、等待期出险的,提供历年保单</view> <view class='articleParagraph'>2、历史病历</view> <view class='articleParagraph'>3、重大疾病索赔,需提供病理检验报告及条款约定的其他证明材料</view> <view class='articleItem'>五、建筑施工人员团体意外险增加:</view> <view class='articleParagraph'>劳动合同、工资表或其它用工证明,工程分包合同及施工合同</view> <view class='articleItem'>六、借款人意外险增加:</view> <view class='articleParagraph'>借款合同、贷款余额证明等相关资料</view> <view class='articleItem'>七、旅游意外险增加:</view> <view class='articleParagraph'>旅行社当次出游行程表、机票或车票、护照,财产损失证明、物损清单、相关发票或购置交易记录、航班延误证明、登机牌等</view> <view class='articleItem'>八、不记名投保每个被保险人均分保额的保单需提供所有被保险人员信息、身份证明、关系证明</view> <view class='articleItem'>九、保险人需要的其他证明材料</view> </view> </view>
Style code:
.guid-content{ display: inline-block; width: 91.5%; }
Note: width is set according to actual needs.
Scenario 2: The content of the list page is not displayed
The solution is the same as scenario 1. Nest another view under the top-level parent element of the page to include all other child elements and put Display Just set it to block, and the Display of other child elements will not be affected. Set it to flex.
Related recommendations:
WeChat Mini Program realizes the quantity of limited items purchased during shopping (with code)
The above is the detailed content of Solution to bugs in WeChat applet: Solution to the problem that the page using flex layout cannot be rendered normally in iOS9.X. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Xianyu's official WeChat mini program has quietly been launched. In the mini program, you can post private messages to communicate with buyers/sellers, view personal information and orders, search for items, etc. If you are curious about what the Xianyu WeChat mini program is called, take a look now. What is the name of the Xianyu WeChat applet? Answer: Xianyu, idle transactions, second-hand sales, valuations and recycling. 1. In the mini program, you can post idle messages, communicate with buyers/sellers via private messages, view personal information and orders, search for specified items, etc.; 2. On the mini program page, there are homepage, nearby, post idle, messages, and mine. 5 functions; 3. If you want to use it, you must activate WeChat payment before you can purchase it;

WeChat applet implements picture upload function With the development of mobile Internet, WeChat applet has become an indispensable part of people's lives. WeChat mini programs not only provide a wealth of application scenarios, but also support developer-defined functions, including image upload functions. This article will introduce how to implement the image upload function in the WeChat applet and provide specific code examples. 1. Preparatory work Before starting to write code, we need to download and install the WeChat developer tools and register as a WeChat developer. At the same time, you also need to understand WeChat

To implement the drop-down menu effect in WeChat Mini Programs, specific code examples are required. With the popularity of mobile Internet, WeChat Mini Programs have become an important part of Internet development, and more and more people have begun to pay attention to and use WeChat Mini Programs. The development of WeChat mini programs is simpler and faster than traditional APP development, but it also requires mastering certain development skills. In the development of WeChat mini programs, drop-down menus are a common UI component, achieving a better user experience. This article will introduce in detail how to implement the drop-down menu effect in the WeChat applet and provide practical

Implementing picture filter effects in WeChat mini programs With the popularity of social media applications, people are increasingly fond of applying filter effects to photos to enhance the artistic effect and attractiveness of the photos. Picture filter effects can also be implemented in WeChat mini programs, providing users with more interesting and creative photo editing functions. This article will introduce how to implement image filter effects in WeChat mini programs and provide specific code examples. First, we need to use the canvas component in the WeChat applet to load and edit images. The canvas component can be used on the page

Use the WeChat applet to achieve the carousel switching effect. The WeChat applet is a lightweight application that is simple and efficient to develop and use. In WeChat mini programs, it is a common requirement to achieve carousel switching effects. This article will introduce how to use the WeChat applet to achieve the carousel switching effect, and give specific code examples. First, add a carousel component to the page file of the WeChat applet. For example, you can use the <swiper> tag to achieve the switching effect of the carousel. In this component, you can pass b

The official WeChat mini program of Xianyu has been quietly launched. It provides users with a convenient platform that allows you to easily publish and trade idle items. In the mini program, you can communicate with buyers or sellers via private messages, view personal information and orders, and search for the items you want. So what exactly is Xianyu called in the WeChat mini program? This tutorial guide will introduce it to you in detail. Users who want to know, please follow this article and continue reading! What is the name of the Xianyu WeChat applet? Answer: Xianyu, idle transactions, second-hand sales, valuations and recycling. 1. In the mini program, you can post idle messages, communicate with buyers/sellers via private messages, view personal information and orders, search for specified items, etc.; 2. On the mini program page, there are homepage, nearby, post idle, messages, and mine. 5 functions; 3.

Implementing the sliding delete function in WeChat mini programs requires specific code examples. With the popularity of WeChat mini programs, developers often encounter problems in implementing some common functions during the development process. Among them, the sliding delete function is a common and commonly used functional requirement. This article will introduce in detail how to implement the sliding delete function in the WeChat applet and give specific code examples. 1. Requirements analysis In the WeChat mini program, the implementation of the sliding deletion function involves the following points: List display: To display a list that can be slid and deleted, each list item needs to include

To implement the picture rotation effect in WeChat Mini Program, specific code examples are required. WeChat Mini Program is a lightweight application that provides users with rich functions and a good user experience. In mini programs, developers can use various components and APIs to achieve various effects. Among them, the picture rotation effect is a common animation effect that can add interest and visual effects to the mini program. To achieve image rotation effects in WeChat mini programs, you need to use the animation API provided by the mini program. The following is a specific code example that shows how to
