From 3406d1c0bb9814a9db56f5f9acfb627c4bcbc476 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Sat, 25 Feb 2023 09:38:42 +0800 Subject: [PATCH] Update doc (14339) Signed-off-by: ester.zhou --- .../arkui-ts/ts-basic-components-richtext.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-richtext.md b/en/application-dev/reference/arkui-ts/ts-basic-components-richtext.md index 513ce4a3c0..39321308ca 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-richtext.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-richtext.md @@ -38,14 +38,15 @@ RichText(content:string) | \

--\

| Defines six levels of headings in the HTML document. \

defines the most important heading, and \

defines the least important heading.| \

This is an H1 heading\

\

This is an H2 heading\

| | \

\

| Defines a paragraph.| \

This is a paragraph\

| | \
| Inserts a newline character.| \

This is a paragraph\
This is a new paragraph\

| +| \ | Defines the font style for the text contained within it, including the font face, size, and color.| \This is in red\ | | \
| Defines a thematic break (such as a shift of topic) on an HTML page and creates a horizontal line.| \

This is a paragraph\

\
\

This is a paragraph\

| -| \\ | Defines an image.| \\ | +| \\ | Defines an image.| \\ | | \
\
| Defines a generic container that is generally used to group block-level elements. It allows you to apply CSS styles to multiple elements at the same time.| \
\

This is the heading in a div element\

\
| | \\ | Displays text in italic style.| \This is in italic style\| | \\ | Defines text that should be styled differently or have a non-textual annotation, such as misspelt words or a proper name in Chinese text. It is recommended that you avoid using the \ tag where it could be confused with a hyperlink.| \

\This is an underlined paragraph\\

| | \ | Used to embed CSS within an HTML document.| \ | | style | Defines the inline style of an element and is placed inside the tag. Use quotation marks (') to separate the styling text and use semicolons (;) to separate styles, for example, **style='width: 500px;height: 500px;border: 1px solid;margin: 0 auto;'**.| \

This is a heading\

\

This is a paragraph\

| -| \ | Embeds or references a client-side script, such as JavaScript. | \ | +| \ | Embeds or references a client-side script, such as JavaScript.| \ | ## Example @@ -82,4 +83,8 @@ struct RichTextExample { } ``` - ![richText](figures/richText.png) + ![richText](figures/richText.png) + +## Precautions + +The underlying layer of the **\** component reuses the **\** component to provide basic capabilities, including but not limited to HTML page parsing and rendering. However, the **\** component is resources consuming. In scenarios where the **\** component is repeatedly used, for example, when it is repeatedly used in a list, frame freezing or slow response may occur. -- GitLab