<html>
<head>
<style type="text/css">
#pic:{width:420px;
height:300px;
background-image:url(landscape.jpg);
background-repeat:none;
background-position: center;
float: left;
background-color: #77a;}
</style>
</head>
<body>
<div id="pic"></div>
</body>
</html>
还是没有啊
追答哦哦,看到了,#pic{}里面写样式,不要加:还有就是你的样式里面宽度的冒号和}有中文格式的,也会影响到显示