当前位置:编程学习 > JAVA >>

莫名其妙,这个A标签的超链接就不能点了!

使用的a标签的href,之前还好好的,看了下svn的修改记录,只是有人改了一下布局,其它都没动,现在就不能点了。(不是点了不跳转,是鼠标只在链接上就不改变,也无法点击,就像一个静态页面写出来的一样)

上代码


<%@ page contentType="text/html; charset=GBK"
import="com.lbs.commons.GlobalNames,java.lang.*"%>
<%@ taglib uri="/WEB-INF/leaf.tld" prefix="leaf"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%
String conTextPath = (String) request.getContextPath();
%>
<html>
<head>
<title>工作区</title>
<style type="text/css">
body {
FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
src='<%=request.getContextPath()%>/images/welcome.gif', sizingMethod='scale');
}

ul li {
list-style-type: none;
list-style-image: url(<%=request.getContextPath()%>/images/new_image/dot2.gif);
}
</style>
</head>
<!--标题部分-->

<body>
<%!int jbzb1, sjsb1;%>
<%
String jbzb = (String) request.getAttribute("jbzb");
String sjsb = (String) request.getAttribute("sjsb");
if (jbzb == null) {
jbzb1 = 0;
} else {
jbzb1 = Integer.parseInt(jbzb);
}
if (sjsb == null) {
sjsb1 = 0;
} else {
sjsb1 = Integer.parseInt(sjsb);
}
%>
<table id="top" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id="todo"></td>
</tr>
<td id="warn">
<ul
style="list-style-image: none; margin-left: 265px; margin-top: 150px">
<img src="<%=request.getContextPath()%>/images/new_image/ico.gif" />
<font color="red">待办事宜</font>
<li>您有 <a href="<%=conTextPath%>/sysmgr/importantCaseAction.do?method=loadApproveCase">
<font color="red"><%=sjsb1%></font></a> 个省级上报案件需要处理。
</li>
<li>您有 <a href="<%=conTextPath%>/caseinspection/caseInspectionAction.do?method=loadRegions">
<font color="red"><%=jbzb1%></font></a> 个交办转办案件需要处理。
</li>

</ul>
</td>
</tr>
</table>
</body>
<leaf:errors />

</html>
java html jsp a标签 --------------------编程问答-------------------- 也没有错误代码吗? 你看下最后生成的html. --------------------编程问答--------------------
引用 1 楼 rui888 的回复:
也没有错误代码吗? 你看下最后生成的html.


没有错误。。



<html>
<head>
<title>工作区</title>
<style type="text/css"> 
body {
FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
src='/lras/images/welcome.gif', sizingMethod='scale');
}
 
ul li {
list-style-type: none;
list-style-image: url(/lras/images/new_image/dot2.gif);
}
</style>
</head>
<!--标题部分-->
 
<body>


<table id="top" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id="todo"></td>
</tr>
<td id="warn">
<ul
style="margin-left: 265px; margin-top: 150px">
<img src="/lras/images/new_image/ico.gif" />
<font color="red">待办事宜</font>
<li>您有 <a href="/lras/sysmgr/importantCaseAction.do?method=loadApproveCase">
<font color="red">0</font></a> 个省级上报案件需要处理。
</li>
<li>您有 <a href="/lras/caseinspection/caseInspectionAction.do?method=loadRegions">
<font color="red">0</font></a> 个交办转办案件需要处理。
</li>

</ul>
</td>
</tr>
</table>
</body>
 
 
</html>
--------------------编程问答-------------------- lz你自己有没有调试过啊?把服务起起来,自己用浏览器调试一下就知道问题在哪里了。 --------------------编程问答--------------------
引用 3 楼 fuzeqiang 的回复:
lz你自己有没有调试过啊?把服务起起来,自己用浏览器调试一下就知道问题在哪里了。



firebug查看没有错。。。。。 --------------------编程问答-------------------- 应该是你的url 问题吧。你看下,可以跳转 度哥不 
<html>
<head>
<title>工作区</title>
<style type="text/css"> 
body {
    FILTER: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,
        src='/lras/images/welcome.gif', sizingMethod='scale');
}
  
ul li {
    list-style-type: none;
    list-style-image: url(/lras/images/new_image/dot2.gif);
}
</style>
</head>
<!--标题部分-->
  
<body>
     
     
    <table id="top" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td id="todo"></td>
        </tr>
        <td id="warn">
            <ul
                style="margin-left: 265px; margin-top: 150px">
                <img src="/lras/images/new_image/ico.gif" />
                <font color="red">待办事宜</font>
                <li>您有 <a href="/lras/sysmgr/importantCaseAction.do?method=loadApproveCase">
                        <font color="red">0</font></a> 个省级上报案件需要处理。
                </li>
                <li>您有 <a href="http://www.baidu.com/">
                        <font color="red">0</font></a> 个交办转办案件需要处理。
                </li>
                 
            </ul>
        </td>
        </tr>
    </table>
</body>
  
  
</html>
--------------------编程问答--------------------
引用 5 楼 rui888 的回复:
应该是你的url 问题吧。你看下,可以跳转 度哥不




现在的问题是压根鼠标指着链接都不会变,,,,那个链接就像是静态下划线写出来的那样,压根不让我点。。。 --------------------编程问答-------------------- 恢复回去吧。。 --------------------编程问答--------------------
引用 7 楼 fudongrifdr 的回复:
恢复回去吧。。



我就想知道是哪里引起的问题,不可能改了个布局坐标导致的就不能用了吧。。。。 --------------------编程问答-------------------- 试试这样  <a href="javascript:void(0)" onclick=""></a> --------------------编程问答-------------------- 找到问题了,是Alpha滤镜透明层把a标签覆盖到下面去了。。。。

但是目前还是没找到解决办法,网上找了几篇关于Alpha滤镜导致a标签链接失效的博客看了一下,但是我这里还是没有解决掉,纠结啊纠结 --------------------编程问答-------------------- 多写几个字就能屏蔽滤镜影响,到了后台把多出的字符去掉
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,