<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文件在哪裏? –
對我來說工作正常 –