我试了3个背景图片的代码为啥就运行不了
****运行出来的咋就是空白的
F12查看是否报错:
然后用我代码试试 把图片路径改了:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
body {
background-image: url('http://www.zlcool.com/d/file/2014/11/07/015e79ad0e8f55cd3eee56988fc20f48.gif');
}
html,
body {
margin: 0;
height: 100%;
}
</style>
<body>
</body>
</html>
路径有问题呗。你看看报错信息。当前目录./上一级目录../