我想添加一个超链接到这个背景图片。我应该在样式表中创建一个新类吗? (当我试图给新班级打电话时,图像消失了)。如何将超链接添加到背景图片?
body{
background-image:url('http://thehypebr.com/wp-content/uploads/2010/09/boundless-sem-branco-2.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
line-height:20px; font-size:14px;
font-family:"Trebuchet MS";
margin:0
}
编辑:(?由新的div类创建)现在有一个在顶部和底部的空白
非常感谢!但是现在顶部底部和页面菜单本身就有空白区域。 http://thehypebr.com/ – pmchrislee 2010-09-23 13:23:13
不要做''onclick =“window.location.href =”http://boundlessny.com/clothing“”' - 做'“onclick ='window.location.href = “http://boundlessny.com/clothing'”' - 即在双引号内嵌套单引号。 – Skilldrick 2010-09-23 13:33:05
加'宽度:100%;' – Skilldrick 2010-09-23 13:33:56