jQuery Mobile 页面 setContainerBackground()方法
jQuery Mobile是一种基于网络的技术,用于制作可在所有智能手机、平板电脑和台式机上访问的响应式内容。在这篇文章中,我们将使用jQuery Mobile Page setContainerBackground()方法来为指定的页面部件的容器设置一个新的背景色。
注意:这个方法在jQuery Mobile 1.4.0中被废弃,并将在1.5.0中被移除。
语法:
参数:该方法接受一个参数,如下图所示。
- theme。这是指定的主题,用于设置背景色块。
返回值:该方法不返回任何值。
CDN链接:首先,添加你的项目需要的jQuery Mobile脚本。
例子:这个例子描述了jQuery Mobile Page setContainerBackground()方法。
输出:
jQuery Mobile Page setContainerBackground()方法