关于在eclipse中Undefined attribute name (role).解决办法

来源:互联网 发布:汽车模具编程 编辑:程序博客网 时间:2024/05/21 06:25

在eclipse中编程报错:Undefined attribute name (role).说明没有role属性这是版本不支持问题

<span style="font-family:SimSun;"><ul class="nav nav-tabs" id="ul1"><li role="presentation"><a href="#">hello</a></li><li role="presentation"><a href="#">文件夹</a></li><li role="presentation"><a href="#">hhhhh</a></li></ul></span>

我们只需要把role属性编程data-role即可

<ul class="nav nav-tabs" id="ul1"><li data-role="presentation"><a href="#">hello</a></li><li data-role="presentation"><a href="#">文件夹</a></li><li data-role="presentation"><a href="#">hhhhh</a></li></ul>


0 0
原创粉丝点击