未定义的属性名称(数据切换) [英] Undefined attribute name (data-toggle)

查看:754
本文介绍了未定义的属性名称(数据切换)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse中的 JSP(Java Server Pages)中使用Twitter引导。我试图在导航栏(导航栏)中使用twitter登录/注册表单,但它会发出警告未定义的属性名称(数据切换)以下代码给出警告 data-toggle =dropdown

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".

推荐答案

Eclipse不能识别属性,但您可以配置HTML验证首选项以忽略它。

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

在HTML文件的首选项 - >验证中有一个选项来忽略指定的属性名称。如果你想要你可以在这里输入一个模式,例如 data - *

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-*.

这篇关于未定义的属性名称(数据切换)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆