gpt4 book ai didi

css - 使用 css 更改 jquery mobile 的默认列表颜色

转载 作者:太空宇宙 更新时间:2023-11-04 03:55:43 25 4
gpt4 key购买 nike

我有一个下面给出的 html 页面

<body>
<div data-role="page" id="home">

<div data-role="header" data-position="fixed">
<a href="#home" data-role="button" data-icon="home"></a>
</div>
<div data-role="content">
<div class="content-primary">
<form id="frm1">
<ul data-role="listview">
<li data-role="fieldcontain">
<label for="Name">name:</label>
<input type="text" Name="Name" id="Name" value="" />
</li>
<li data-role="fieldcontain">
<label for="No">no:</label>
<input type="text" No="No" id="No" value="" />
</li>
<li data-role="fieldcontain">
<label for="countryName">Country name:</label>
<input type="text" countryName="countryName" id="countryName" value="" />
</li>
<li data-role="fieldcontain">
<label for="stateName">State name:</label>
<input type="text" stateName="stateName" id="stateName" value="" />
</li>
<li data-role="fieldcontain">
<label for="cityName">City name:</label>
<input type="text" cityName="cityName" id="cityName" value="" />
</li>

</form>
</div>
</div>
</body>

我正在使用给定链接中显示的以下 jquery 1.3.2 链接

http://jquerymobile.com/download/

我有下面给出的css文件

.ui-body-c { background:#FFFFFF !important; }

.ui-page .ui-header {
background:#0B0B3B !important;
}
.ui-page .ui-footer {
background:#0B0B3B !important;
}

当我使用上面的代码时,显示的列表包含灰色。

我如何将显示的列表变成白色而不是灰色。

提前致谢

最佳答案

我实际上无法对此进行测试,但是当 css 规则定义为 background-color: 并且您尝试仅使用 background:

尝试更改您的规则,改为使用 background-color:。另外,如果你能帮助它,请远离 !important 除非你确定它是你需要的。当您的 CSS 变得更加复杂时,这可能是一个真正的痛苦。

关于css - 使用 css 更改 jquery mobile 的默认列表颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22859127/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com