css 实现 图片链接 图片变换
2009-07-08 14:50
316 查看
<style type="text/css">
td#td1 a
{
text-decoration:none;
background:transparent url(images/1.jpg) no-repeat;
display:block;
width:260px;
line-height:88px;
}
td#td1 a:hover
{
background:transparent url(images/1-1.jpg);
display:block;
width:260px;
line-height:88px;
}
td#td2 a
{
text-decoration:none;
background:transparent url(images/2.jpg) no-repeat;
display:block;
width:260px;
line-height:88px;
}
td#td2 a:hover
{
background:transparent url(images/2-2.jpg);
display:block;
width:260px;
line-height:88px;
}
td#td3 a
{
text-decoration:none;
background:transparent url(images/3.jpg) no-repeat;
display:block;
width:260px;
line-height:88px;
}
td#td3 a:hover
{
background:transparent url(images/3-3.jpg);
display:block;
width:260px;
line-height:88px;
}
</style>
<TABLE id=nav cellSpacing=0 cellPadding=0 width=800 border=0>
<TBODY>
<TR>
<td width="5"></td>
<TD id=td1 width=150 height=30><A href="#"> </A></TD>
<td width="5"></td>
<TD id=td2 width=150 height=30><A href="#"> </A></TD>
<td width="5"></td>
<TD id=td3 width=150 height=30><A href="#"> </A></TD>
<td width="5"></td>
</TR>
</TBODY></TABLE>
td#td1 a
{
text-decoration:none;
background:transparent url(images/1.jpg) no-repeat;
display:block;
width:260px;
line-height:88px;
}
td#td1 a:hover
{
background:transparent url(images/1-1.jpg);
display:block;
width:260px;
line-height:88px;
}
td#td2 a
{
text-decoration:none;
background:transparent url(images/2.jpg) no-repeat;
display:block;
width:260px;
line-height:88px;
}
td#td2 a:hover
{
background:transparent url(images/2-2.jpg);
display:block;
width:260px;
line-height:88px;
}
td#td3 a
{
text-decoration:none;
background:transparent url(images/3.jpg) no-repeat;
display:block;
width:260px;
line-height:88px;
}
td#td3 a:hover
{
background:transparent url(images/3-3.jpg);
display:block;
width:260px;
line-height:88px;
}
</style>
<TABLE id=nav cellSpacing=0 cellPadding=0 width=800 border=0>
<TBODY>
<TR>
<td width="5"></td>
<TD id=td1 width=150 height=30><A href="#"> </A></TD>
<td width="5"></td>
<TD id=td2 width=150 height=30><A href="#"> </A></TD>
<td width="5"></td>
<TD id=td3 width=150 height=30><A href="#"> </A></TD>
<td width="5"></td>
</TR>
</TBODY></TABLE>
相关文章推荐
- Html+Css 链接状态变换的单图片实现(精通CSS高级WEB解决方案)读书笔记
- 用css实现链接经过时显示浮动图片背景的效果
- CSS 伪类实现的鼠标滑动图片链接
- CSS基础实例:CSS实现带背景图片的文字链接的方法
- 用CSS实现鼠标经过图片链接加边框
- CSS伪类实现的鼠标滑动图片链接
- 用CSS实现的图片透明度链接效果代码
- CSS 伪类实现的鼠标滑动图片链接
- 用CSS实现的图片透明度链接效果代码
- CSS实现同一图片左右半边加链接导航
- 超经典jquery+CSS+DIV实现图片轮换效果
- 利用CSS、JavaScript及Ajax实现图片预加载的三大方法
- 利用CSS、JavaScript及Ajax实现图片预加载的三大方法
- Dreamweaver 简单实现鼠标经过图片变换的方法
- 利用CSS、JavaScript及Ajax实现高效的图片预加载
- 利用CSS、JavaScript及Ajax实现图片预加载的三大方法
- CSS - 实现图片垂直居中,文字垂直居中
- CSS设置DIV Herf底层图片和链接同时改变,兼容IE,Firefox,Opera,Safari,Chrome等
- input输入框中有图片怎么使用css布局实现
- 纯CSS无表达式实现图片等比缩放(转载)