gpt4 book ai didi

html - HTML 文件中的背景颜色没有改变

转载 作者:行者123 更新时间:2023-11-28 04:43:58 26 4
gpt4 key购买 nike

这里是第一篇文章。

我想知道为什么背景颜色没有改变。

我的 bg color 属性显然不起作用。

<body bgcolor="#f0ffff">

这就是我所说的主体,在 CSS 中根本没有提到主体。

<head>
<title>User Settings</title>
<link rel="stylesheet" type="text/css" href="MainStyles.css">
<!-- Include meta tag to ensure proper rendering and touch zooming -->
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>

<!-- jQueryMobile -->
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"/>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

<script src="JS\changeProfile.js"></script>
</head>

这是 HTML 文件的标题,我不知道这是否是导致它的原因。

有什么帮助吗?抱歉,我对此很陌生,这真的很令人沮丧……如果您需要更多信息,我会发布更多代码。

只是要提一下,HTML 中没有提及背景或颜色。

最佳答案

  1. 在浏览器中打开开发者工具。
  2. 检查 body 元素。
  3. 查看适用于它的样式。

DOM inspector

http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css 正在改变 ui-overlay 的背景颜色-a 类(大概是在加载其 JS 时由 jQuery Mobile 添加到主体中)。

关于html - HTML 文件中的背景颜色没有改变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41061232/

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