SymptomWhen the richtext component is used to display web page content, a white border appears, which affects the overall display effect.
The abnormal effect is as follows.
Cause AnalysisAfter the richtext component contains HTML content, the value of background-color set through a class in the quick app does not take effect. If the richtext component contains only the body of the web page, a white border is displayed around the richtext content even if the background color is set for the body. Complete HTML texts need to be written in richtext, and the background color needs to be set for the HTML tag. Then, the background color can cover the border, and the white border does not appear.
SolutionAdd a complete HTML page to richtext, and set the background color to cover the white border in the HTML tag.
The optimized display effect is as follows.
Read full article in Huawei forum