Invalid location of tag (div) 错误
来源:互联网 发布:光盘刻录软件哪个好 编辑:程序博客网 时间:2024/05/02 02:03
JSP文件中的html标签如下,在eclipse环境下提示:Invalid location of tag (div)。
<a id="test1" class="mitem" href="#">
<img src="../m1.jpg" width="60"></img>
<div id="a-in-1" class="a-in"><div class="a-in-m"></div><div class="a-in-r"></div></div>
< /a>
现象:在 firefox3.6 下进入页面,或者进入页面有时界面显示乱套。但在 ie,firefox3.0下都显示正常。
解决办法:将<a></a>标签下的<div></div>标签替换为<span></span>,如下:
<a id="test1" class="mitem" href="#">
<img src="../m1.jpg" width="60"></img>
<span id="a-in-1" class="a-in"><span class="a-in-m"></span><span class="a-in-r"></span></span>
< /a>
原因应该是<a></a>与<div></div>标签的组合导致浏览器解析出错
- Invalid location of tag (div) 错误
- Invalid location of tag (div) 错误
- Invalid location of tag (div) 错误
- Invalid location of tag (form) 错误
- Invalid location of tag (form) 错误
- Invalid location of tag
- Invalid location of tag
- Invalid location of tag (form)
- Invalid location of tag 解决方案
- Invalid location of tag 解决方案
- Invalid location of tag 解决方案
- Invalid location of tag (form) 错误—— 表单
- Invalid location of tag 解决办法分析
- zend Invalid location of tag 解决方案
- Invalid location of tag 的各类问题
- Eclipse Invalid location of tag 解决办法分析
- Invalid location of tag 解决办法分析
- Invalid location of tag 解决办法分析
- 当初学习时做出的bbsDB数据库创建及一些常用操作
- 解决ubuntu 10.04 下svn checkout 失败的问题
- 设置QListWidgetItem选中的样式
- 地图类型站点(异步处理数据站点)的seo优化方案
- WINDOWS蓝屏故障代码对照
- Invalid location of tag (div) 错误
- Read file line by line (Bash shell script, sed usage)
- Run shell application in ruby
- 存储过程练习操作
- 自旋锁和信号量
- Jquery多选框互相内容交换
- 安装win7和win8 preview双系统,修改启动项,开机就选择系统
- nginx 配置
- More Effectvie C++笔记(三)--谨慎定义类型转换函数、自增、自减操作符前缀形式与后缀形式的区别