<tr>
<a href="Companydt.htm" target="_blank" alt="查看更多 ……"><td colspan="2" background="pic/ysbg_08.gif" heitht="60">
<div style="margin-left:5px; padding:25px 0 3px 0; height:33px;float:left;FONT-SIZE: 18px; " >公司动态</div>
</td></a>
</tr>
是在背景图上做连接????????
解决方案 »
- ExtJS window窗体怎么能够做到只渲染一次
- 【JS】一种简洁实用的对象设计模型
- 关于网页里面的一段JS代码老是出错,不知道错在哪里?请高手指点
- 正则取值name="xxxx"
- UEL与referrer的区别?
- 如何把结果作为变量使用
- 打印边距的设置问题
- 滚动条的宽度可不可以变宽的,在线急等大家~~谢谢先
- 无闪烁刷新的代码
- 急急急,用function DropRow(){if (event.srcElement.parentElement.tagName.toUpperCase() == 'TR') { alert(event.srcElement.parentEle
- 如何用javaScript添加行?
- 使用extjs 做一个表格提交,如下图
就可以了
你这样做太麻烦了点吧
记住你的path一定要写的对啊。
如果还不行的话,你可以试试1楼给出<a ><img /></a>
img才能使用title和alt
这样试试
<td colspan="2" background="pic/ysbg_08.gif" heitht="60">
<div style="margin-left:5px; padding:25px 0 3px 0; height:33px;float:left;FONT-SIZE: 18px; " >
<a href="Companydt.htm" target="_blank" alt="查看更多 ……">公司动态 </a>
</div>
</td>
</tr>
<td colspan="2" background="pic/ysbg_08.gif" heitht="60">
<div style="margin-left:5px; padding:25px 0 3px 0; height:33px;float:left;FONT-SIZE: 18px; " >
<a href="Companydt.htm" target="_blank" title="查看更多 ……">公司动态 </a>
</div>
</td>
</tr>
孟子说的对,我还没注意。。
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script type= "text/javascript" src= "jquery-1.2.6.js"></script>
<script type="text/javascript">
$(function(){
var x=10;
var y=20;
$("a").mouseover(function(e){
this.myTitle=this.title;
this.title="";
var tooltip="<div id='tooltip'>"+this.myTitle+"<div>"
$("body").append(tooltip);
$("#tooltip").css({"top":(e.pageY+y)+"px","left":(e.pageX+x)+"px"}).show("fast");
}).mouseout(function(){
this.title=this.myTitle;
$("#tooltip").remove();
});
})
</script>
</head>
</HEAD> <BODY>
<table>
<tr>
<a href="Companydt.htm" target="_blank" title="查看更多 ……">
<td colspan="2" background="images/1.jpg" heitht="60">
<div style="margin-left:5px; padding:25px 0 3px 0; height:33px;float:left;FONT-SIZE: 18px; " >公司动态 </div>
</td>
</a>
</tr>
</table>
</BODY>
</HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.haha:hover{
background-color: #900;
}
.haha {
height: 50px;
width: 300px;
background-color: #D4D0C8;
float: left;
}
-->
</style>
</head><body>
<a href="#" class="haha">aaaaaaaaaaaa </a></body>
</html>把CSS 的背景换成你要的图片就可以了。我这是用颜色代码来显示的。如果不需要鼠标悬停变颜色把HOVER那行删了就可以了。