Html 为什么css背景图像不显示
为什么在本地桌面上启动文件时CSS背景图像不显示?这是我的密码:Html 为什么css背景图像不显示,html,css,Html,Css,为什么在本地桌面上启动文件时CSS背景图像不显示?这是我的密码: <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" text="type/css" href="discovery.css"> <title>Programming Club Official Blog</title> </head> &
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" text="type/css" href="discovery.css">
<title>Programming Club Official Blog</title>
</head>
<body>
<h1>Programming Club Official Blog</h1>
<p>This is a blog that allows member of the programming club to keep in
touch about what we are doing in the club. Feel free to look at the code by pressing Ctrl-U! ~ Nathan Tran</p>
</body>
</html>
我承诺接受对我最有帮助的答案,所以请为我调试代码。谢谢你的帮助 存在一些语法错误:
html{
背景:url(“http://smashingyolo.com/wp-content/uploads/2014/05/Best-Website-Background-Images10.jpg)没有固定的重复中心;
-webkit背景尺寸:封面;
-moz背景尺寸:封面;
-o-背景尺寸:封面;
背景尺寸:封面;
}
编程俱乐部官方博客
编程俱乐部官方博客
这是一个允许编程俱乐部的成员保持联系的博客
触摸一下我们在俱乐部做的事情。按Ctrl-U键查看代码吧!~Nathan Tran
无需在quote下添加图像URL
问题是错误的URL。图像URL中有空格。请删除之间的空格
最佳-和网站
html{
背景:url(http://smashingyolo.com/wp-content/uploads/2014/05/Best-Website-Background-Images10.jpg)无重复中心固定;
-webkit背景尺寸:封面;
-moz背景尺寸:封面;
-o-背景尺寸:封面;
背景尺寸:封面;
}
编程俱乐部官方博客
编程俱乐部官方博客
这是一个允许编程俱乐部的成员保持联系的博客
触摸一下我们在俱乐部做的事情。按Ctrl-U键查看代码吧!~Nathan Tran
它起作用了!我不知道删除空格会起作用。我以前使用过不同的文本编辑器,但在放置空格时它仍然起作用。我猜空格不合适。代码…:(别担心,我接受了你的答案。如果你认为我的问题有助于你学习,请投赞成票!
html {
background:url (http://smashingyolo.com/wp-content/uploads/2014/05/Best-
Website-Background-Images10.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}