使用 CSS 将链接文本替换成图片

2015-08-23 0 449
使用 CSS 将链接文本替换成图片
<h1><a href="./" rel="external nofollow"  title="Return Home"><span></span>Home</a></h1>

#header h1 a{
	display:block; /* Required */
	width:250px; /* Width of image in question */
	height:70px; /* Height of image in question */
	position:relative; /* Required */
}
#header h1 a span{
	position:absolute; /* Required */
	width:100%; /* Stretch full width of parent */
	height:100%; /* Stretch full height of parent */
	background:url(images/logo.gif) top left no-repeat; /* Image */
	cursor:pointer; /* Required for links to appear like links in IE */
}

遇见资源网 html 使用 CSS 将链接文本替换成图片 http://www.ox520.com/14358.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务