为了账号安全,请及时绑定邮箱和手机立即绑定

关于top内容

http://img1.sycdn.imooc.com//5a3266da0001c14319180060.jpg

那个背景图片死活弄不下来,很苦恼。大概是什么原因呢,感觉代码没错啊。

正在回答

1 回答

<!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>

<link rel="stylesheet" href="reset.css" type="text/css" />

<link rel="stylesheet" href="css/box.css" type="text/css" />

</head>

<body>

<div id="container">

<div id="head">

<div id="head1">

<div id="top">

<li><a href="#">联系我们</a></li>

<li><a href="#">加入收藏</a></li>

<li><a href="#">设为首页</a></li>

</div>

</div>

<div id="head2"></div>

</div>

<div id="main">

<div id="left"></div>

<div id="zhong"></div>

<div id="right"></div>

</div>

<div id="foot"></div>

</div>

</body>

</html>




* {

padding: 0;

margin: 0;

font-size: 12px;

}

body {

background-color: #F5F5F5;

}

#head1{

width: 100%;

height: 27px;

background: url(../image/top_bg.jpg) repeat-x;

}

#top{

width: 1000px;

    margin: 0px auto;

    line-height: 27px;

}

#top li

{

list-style:none;

float: right;

background: url(../image/arrow.jpg) no-repeat;

width: 70px;

}


0 回复 有任何疑惑可以回复我~
#1

小南风oo 提问者

html 和css代码
2017-12-14 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

关于top内容

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号