受支持的 HTML

当项目页面、群组描述、地图弹出窗口以及可配置应用程序中包含富文本编辑器时,可在 ArcGIS Online 网站中使用 HTML。

HTML 标签和属性

下表列出了您可使用的受支持 HTML 标签和属性。

标记属性

a

hrefstyle

abbr

title

article

style

aside

style

audio

autoplaycontrolsloopmutedpreload

bstrongiemuulollitbodybrhr

blockquote

style

code

style

dddldt

style

del

style

details

styleopen

div

stylealignaria-labelaria-hidden

figcaption

style

figure

style

font

sizecolorstyle

footer

style

h1h2h3h4h5h6

style

header

style

img

srcwidthheightborderaltstyle

main

style

mark

style

nav

style

p

style

pre

style

section

style

source

mediasrctype

span

stylearia-labelaria-hidden

sub

style

summary

style

sup

style

table

widthheightcellpaddingcellspacingborderstyle

tdth

heightwidthvalignaligncolspanrowspannowrapstyle

time

style

tr

heightvalignalignstyle

video

autoplaycontrolsheightloopmutedposterpreloadwidth

HTML 注意事项

请记住以下几点:

  • 不支持上表中未列出的 HTML 标签,并且会将其滤出。
  • hrefsrc 允许的协议包括 httpstelmailto
  • 未关闭的标签将自动关闭。
  • 如果未使用 &lt;&gt;&amp;&quot<>&"s 进行转义,则其将在合法标签外部进行转义。
  • 不支持 UNC 链接。
  • 当使用 a 标签时,href 目标 URL 始终在新的浏览器选项卡中打开。

CSS 属性

以下为是受支持的 CSS 属性表。

注:

ArcGIS Online 仅支持内联 CSS。 必须在样式属性内定义 CSS。

CSS 属性

align-items

break-inside

justify-content

align-self

clear

justify-items

background

color

justify-self

background-attachment

color-interpolation-filters

letter-spacing

background-clip

display

lighting-color

background-color

display-inside

line-height

background-image

display-list

list-style

background-origin

display-outside

list-style-image

background-position

flex

list-style-position

background-repeat

flex-basis

list-style-type

background-size

flex-direction

margin

border

flex-flow

margin-bottom

border-bottom

flex-grow

margin-left

border-bottom-color

flex-shrink

margin-right

border-bottom-left-radius

flex-wrap

margin-top

border-bottom-right-radius

float

max-height

border-bottom-style

font

max-width

border-bottom-width

font-family

min-height

border-collapse

font-feature-settings

min-width

border-color

font-kerning

overflow

border-image

font-language-override

padding

border-image-outset

font-size

padding-bottom

border-image-repeat

font-size-adjust

padding-left

border-image-slice

font-stretch

padding-right

border-image-source

font-style

padding-top

border-image-width

font-synthesis

text-align

border-left

font-variant

text-align-last

border-left-color

font-variant-alternates

text-combine-upright

border-left-style

font-variant-caps

text-decoration

border-left-width

font-variant-east-asian

text-decoration-color

border-radius

font-variant-ligatures

text-decoration-line

border-right

font-variant-numeric

text-decoration-skip

border-right-color

font-variant-position

text-decoration-style

border-right-style

font-weight

text-emphasis

border-right-width

gap

text-emphasis-color

border-spacing

grid

text-emphasis-position

border-style

grid-area

text-emphasis-style

border-top

grid-auto-columns

text-height

border-top-color

grid-auto-flow

text-indent

border-top-left-radius

grid-auto-rows

text-justify

border-top-right-radius

grid-column

text-orientation

border-top-style

grid-column-end

text-overflow

border-top-width

grid-column-start

text-shadow

border-width

grid-row

text-space-collapse

box-decoration-break

grid-row-end

text-transform

box-shadow

grid-row-start

text-underline-position

box-sizing

grid-template

text-wrap

box-snap

grid-template-areas

width

box-suppress

grid-template-columns

word-break

break-after

grid-template-rows

word-spacing

break-before

height

word-wrap