发布网友
共3个回答
热心网友
完全可以,用样式表写.background:url(imasge/class.jpg) no-repeat; 这句代码就可以,imasge/这个是路径,class.jpg这个是图片的名称,再不会可以问我!追问做出来还是显示不出来 你可以把那个完整的截图可以不哦 谢谢啦
追答
无标题文档
无标题文档
.abc{width:100px; height:100px;background:url(images/abcg.jpg)no-repeat;}
你新建一个文件夹名为"kkk",在你新建的文件夹里面在建一个名为“images”的文件夹,把这个复制到你的页面,保存到kkk,把图片放到images里面就可以看到了
热心网友
background:url("图片名称");
这是背景图片的代码
热心网友
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.dix{width:100px; height:100px;background-image:url(../images/首页/shang.jpg); background-position:top left; background-repeat:no-repeat;}</style>
</head>
<body>
<div class="dix">aaaaaaaaaaaaaaaaaaaa</div>
</body>
</html>