<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
<style type="text/css">
body {
background-image: url(man_meteor.jpg);
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
background-position: center;
}
为什么我的背景img不显示? 以下是我的文件如何排列。 CSS background-image not showing
NB:CONTENT = “text/html的;字符集= UTF-8” 改变内容= “text/html的” 字符集= UTF-8“ –
等一下,你调用它的html文件在哪里? –
对我来说工作正常 –