html插入精灵,帮助插入超链接到CSS精灵代码..Java? HTML?

在CS5中使用内置的Javascript来完成滚动图像非常简单,但是,我需要基于CSS来执行此操作。帮助插入超链接到CSS精灵代码..Java? HTML?

我已经设法让代码工作和精灵都很好,但我似乎有一个问题...我需要使这些可点击(指向)的URL。我曾尝试过所有方法,包括在div行中的 url。我甚至尝试将图片放在网址中。我不想从头开始使用方法,因为我在其他地方看到过。我甚至无法让这个工作...所以总之有无论如何(简单)的方式来使精灵指向一个网址...谢谢!

Untitled Document

.sprites {

background-image : url(http://sheldontechnology.com/social/facebooksprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#facebooksprite {

height : 75px;

width : 100px;

background-position : -0px -75px;

padding-left:10px;

float: left;

}

#facebooksprite:hover {

background-position : -0px 0px;

}

.sprites2 {

background-image : url(http://sheldontechnology.com/social/twittersprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#twittersprite {

height : 75px;

width : 100px;

background-position : -0px -75px;

float:left;

}

#twittersprite:hover {

background-position : -0px 0px;

}

.sprites3 {

background-image : url(http://sheldontechnology.com/social/flickrsprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#flickrsprite {

height : 75px;

width : 100px;

background-position : -0px -75px;

float:left;

}

#flickrsprite:hover {

background-position : -0px 0px;

}

.sprites4 {

background-image : url(http://sheldontechnology.com/social/youtubesprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#youtubesprite {

height : 75px;

width : 100px;

background-position : -0px -75px;

float:left;

}

#youtubesprite:hover {

background-position : -0px 0px;

}

.sprites5 {

background-image : url(http://sheldontechnology.com/social/tumblrsprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#tumblrsprite {

height : 75px;

width : 100px;

background-position : -0px -75px;

float:left;

}

#tumblrsprite:hover {

background-position : -0px 0px;

}

.sprites6 {

background-image : url(http://sheldontechnology.com/social/bloggersprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#bloggersprite {

height : 75px;

width : 100px;

background-position : -0px -75px;

float:left;

}

#bloggersprite:hover {

background-position : -0px 0px;

}

.sprites7 {

background-image : url(http://sheldontechnology.com/social/googleplacessprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#googleplacessprite {

height : 73px;

width : 94px;

background-position : -0px -73px;

float:left;

}

#googleplacessprite:hover {

background-position : -0px 0px;

}

.sprites8 {

background-image : url(http://sheldontechnology.com/social/yelpsprite.png);

background-color : transparent;

background-repeat : no-repeat;

}

#yelpsprite {

height : 75px;

width : 97px;

background-position : -0px -75px;

float:left;

}

#yelpsprite:hover {

background-position : -0px 0px;

+0

要嵌入代码,请将其粘贴到编辑器中,突出显示它并点击“{}”按钮(或将其全部缩进4个空格)。只是为了下一次:) –

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值