【发布时间】:2014-10-18 17:59:31
【问题描述】:
我的页脚包含三张图片,我想添加一个链接(版权和公司网站),一旦你点击图片,它就会带你到网站我尝试了我在这里找到的不同方法,但它不适用于我。我应该添加什么?
页面代码:
<body>
<div id="wrap">
<div id="header">
</div>
<div id="main">
<div id="content">
</div>
</div>
</div>
<div id="footer">
<div id="img-1">
</div>
</div>
</body>
CSS:
* {margin:0;padding:0;}
html, body {
height: 100%;
background: url('../../fresh/img/bg.png') repeat;
}
#wrap {
min-height: 100%;
}
#header {
background: url('../../fresh/img/header.png') no-repeat top center;
display:block;
text-indent:-9000px;
width: 100%;
height: 237px;
}
#main {
overflow:auto;
padding-bottom: 200px;}
#content {
background: url('../../fresh/img/log-in.png') no-repeat top center;
display:block;
width: 100%;
height: 201px;
}
#footer {
position: relative;
margin-top: -200px; height: 200px;
clear:both;
}
body:before {
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;
}
#img-1 {
bottom:0;
height:200px;
background : url('../img/footer.png') center no-repeat,
url('../img/companysite.png') left no-repeat,
url('../img/copyright.png') right no-repeat, ;
}
【问题讨论】:
-
你尝试了什么?