当我在移动设备上查看下面的页面时,它有黑色背景。在web浏览器上,背景颜色为白色。如何使手机和网络背景相同?
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
在CSS中为body元素添加背景色。
body {
background-color: white !important;
}
CSS背景属性