操作方法
在 ArcGIS Instant Apps 中,预定义主题提供了一种便捷方式,可快速创建目标驱动的应用程序,用于与地图和数据进行交互。 为了获得更好的用户体验,有时需要使用自定义 CSS 来更改搜索栏中占位符文本的字号和粗细,从而控制应用程序的外观(其中包括字体)。 此增强功能可确保提升可读性和视觉一致性。 有关详细信息,请参阅 ArcGIS Instant Apps:更改主题和布局。 下图显示了 ArcGIS Instant Apps Zone Lookup 模板中搜索栏占位符文本的默认字号和粗细。

本文提供了在 ArcGIS Instant Apps Zone Lookup 模板中使用自定义 CSS 在“搜索”选项中更改占位符文本字号和粗细的工作流。



Note: Optionally, click Search settings and type Custom CSS. The Theme & Layout panel is displayed.

Warning:
ArcGIS Instant Apps updates for the source template may impact an app's custom CSS.
.esri-search__form .esri-input[type=text] {
font-size: 24px;
font-weight: bold;
}
下图显示了 ArcGIS Instant Apps Zone Lookup 模板中搜索栏占位符文本的自定义字号和粗细。

文章 ID: 000032715
获取来自 ArcGIS 专家的帮助
立即开始聊天