Undefined attribute name (data-toggle)

匿名 (未验证) 提交于 2019-12-03 08:48:34

问题:

I am using Twitter bootstrap in JSP(Java Server Pages) in eclipse. I am trying to use twitter log in/signup form in navbar(navigation-bar), but it gives a warning Undefined attribute name (data-toggle) Following code gives warning data-toggle="dropdown".

回答1:

Eclipse does not recognize this attribute, but you can configure the HTML Validation preferences to ignore it.

Under Preferences for HTML Files --> Validation there is an option to ignore specified attribute names. If you want you can enter a pattern here such as data-*.



回答2:

This warning isn't shown with Eclipse Luna so upgrading your Eclipse version should make this go away.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!