谁能帮我写个html代码?以图片为背景的纯页面,在图片上某一处加入文字,点击文字可以跳转到其他网址

如题所述

第1个回答  2013-05-30
CSS代码如下:
*{
margin:0;
padding:0;
}
.bg{
width:100%;
height:600px;
background:url(images/5659067_180539001618_2.jpg) no-repeat center top;
}
.bg .nav{
width:900px;
margin:0 auto;
font-family:"宋体";
font-size:14px;
font-weight:bold;
color:#000;
padding-top:20px;
}
.bg .nav a{
text-decoration:none;
color:#000;
}
.bg .nav a:hover{
text-decoration:underline;
color:#F00;
}

DIV+CSS代码如下:

<div class="bg">

<div class="nav">
<a href="你要跳转的地址" target="_blank">我是测试内容!</a>
</div>
</div>本回答被提问者采纳
第2个回答  2013-05-30
很简单的额小例子啊,你去查demo一查一把
相似回答