超文本标记语言 (HTML) 用于在 ArcGIS Online 网站中自定义您的内容和数据。 本页概述了 HTML 清理器所接受的 HTML。
HTML 标签和属性
下表列出了您可使用的受支持 HTML 标签和属性。
标记 | 属性 |
---|---|
a | href,style |
abbr | title |
article | style |
aside | style |
audio | autoplay、controls、loop、muted、preload |
b、strong、i、em、u、ul、ol、li、tbody、br、hr | |
blockquote | style |
code | style |
dd、dl、dt | style |
del | style |
details | style,open |
div | style、align、aria-label、aria-hidden |
figcaption | style |
figure | style |
font | size、color、style |
footer | style |
h1、h2、h3、h4、h5、h6 | style |
header | style |
img | src、width、height、border、alt、style |
main | style |
mark | style |
nav | style |
p | style |
pre | style |
section | style |
source | media、src、type |
span | style、aria-label、aria-hidden |
sub | style |
summary | style |
sup | style |
table | width、height、cellpadding、cellspacing、border、style |
td,th | height、width、valign、align、colspan、rowspan、nowrap、style |
time | style |
tr | height、valign、align、style |
video | autoplay、controls、height、loop、muted、poster、preload、width |
HTML 注意事项
请记住以下几点:
- 不支持上表中未列出的 HTML 标签,并且会将其滤出。
- href 和 src 允许的协议包括 https、tel 和 mailto。
- 未关闭的标签将自动关闭。
- 如果未使用 <>&" 对 <>&"s 进行转义,则其将在合法标签外部进行转义。
- 不支持 UNC 链接。
- 当使用 a 标签时,href 目标 URL 始终在新的浏览器选项卡中打开。
CSS 属性
下表显示了支持的 CSS 属性。
注:
ArcGIS Online 仅支持内联 CSS。 必须在样式属性内定义 CSS。
背景属性
以下为是受支持的背景属性表。
属性 | ||
---|---|---|
background | background-color | background-position |
background-attachment | background-image | background-repeat |
background-clip | background-origin | background-size |
边框属性
以下为是受支持的边框属性表。
属性 | ||
---|---|---|
border | border-image-repeat | border-right-style |
border-bottom | border-image-slice | border-right-width |
border-bottom-color | border-image-source | border-spacing |
border-bottom-left-radius | border-image-width | border-style |
border-bottom-right-radius | border-left | border-top |
border-bottom-style | border-left-color | border-top-color |
border-bottom-width | border-left-style | border-top-left-radius |
border-collapse | border-left-width | border-top-right-radius |
border-color | border-radius | border-top-style |
border-image | border-right | border-top-width |
border-image-outset | border-right-color | border-width |
箱形图属性
以下为是受支持的框属性表。
属性 | ||
---|---|---|
box-decoration-break | box-sizing | box-suppress |
box-shadow | box-snap |
中断属性
以下为是受支持的中断属性表。
属性 | ||
---|---|---|
break-after | break-before | break-inside |
显示属性
以下为是受支持的显示属性表。
属性 | |||
---|---|---|---|
display | display-inside | display-list | display-outside |
Flex 属性
以下为是受支持的 Flex 属性表。
属性 | |||
---|---|---|---|
flex | flex-direction | flex-grow | flex-wrap |
flex-basis | flex-flow | flex-shrink |
字体属性
以下为是受支持的字体属性表。
属性 | ||
---|---|---|
font | font-size-adjust | font-variant-caps |
font-family | font-stretch | font-variant-east-asian |
font-feature-settings | font-style | font-variant-ligatures |
font-kerning | font-synthesis | font-variant-numeric |
font-language-override | font-variant | font-variant-position |
font-size | font-variant-alternates | font-weight |
格网属性
以下为是受支持的格网属性表。
属性 | ||
---|---|---|
grid | grid-column | grid-row-start |
grid-area | grid-column-end | grid-template |
grid-auto-columns | grid-column-start | grid-template-areas |
grid-auto-flow | grid-row | grid-template-columns |
grid-auto-rows | grid-row-end | grid-template-rows |
对齐属性
以下为是受支持的对齐属性表。
属性 | ||
---|---|---|
justify-content | justify-items | justify-self |
列表属性
以下为是受支持的列表属性表。
属性 | |||
---|---|---|---|
list-style | list-style-image | list-style-position | list-style-type |
边距属性
以下为是受支持的边距属性表。
属性 | ||
---|---|---|
margin | margin-left | margin-top |
margin-bottom | margin-right |
填充属性
以下为是受支持的填充属性表。
属性 | ||
---|---|---|
padding | padding-left | padding-top |
padding-bottom | padding-right |
文本属性
以下为是受支持的文本属性表。
属性 | |
---|---|
text-align | text-emphasis-style |
text-align-last | text-height |
text-combine-upright | text-indent |
text-decoration | text-justify |
text-decoration-color | text-orientation |
text-decoration-line | text-overflow |
text-decoration-skip | text-shadow |
text-decoration-style | text-space-collapse |
text-emphasis | text-transform |
text-emphasis-color | text-underline-position |
text-emphasis-position | text-wrap |
单词属性
以下为是受支持的单词属性表。
属性 | ||
---|---|---|
word-break | word-spacing | word-wrap |
其他属性
以下为是受支持的 CSS 属性表。
属性 | ||
---|---|---|
align-items | gap | max-width |
align-self | height | min-height |
clear | letter-spacing | min-width |
color | lighting-color | overflow |
color-interpolation-filters | line-height | width |
float | max-height |