关于webstorm对input textarea 等表单元素提出的警告问题
2015-10-15 09:15
567 查看
<input type="text" name="" id=""/>
普普通通的表单元素,在webstorm里却无情的给出警告
Form input without an associated label less... (Ctrl+F1)
This inspection highlights form elements without required associated label and provides the ability to create a new label
大致的意思我也没看懂,反正就是标签不对什么的
百度了一整,发现百度上讲这个的基本上没有,坑叔啊
于是上了雅虎,嘿,雅虎就是好,直接让我找到了相关的英文资料,原文如下
This is not an error, however it's recommended to associate labels with corresponding form elements for the sake of
UX convenience. For example for the name field:
翻译成中文大概意思就是
这不是一个错误,但是它的建议将标签与UX方便起见相应的表单元素。例如为名称字段:
然后给出一个示例
原来是webstorm太聪明导致的。
当然这个错误可以忽略不计,但是遵循html5的标准,上面的写法是及其规范的。
普普通通的表单元素,在webstorm里却无情的给出警告
Form input without an associated label less... (Ctrl+F1)
This inspection highlights form elements without required associated label and provides the ability to create a new label
大致的意思我也没看懂,反正就是标签不对什么的
百度了一整,发现百度上讲这个的基本上没有,坑叔啊
于是上了雅虎,嘿,雅虎就是好,直接让我找到了相关的英文资料,原文如下
This is not an error, however it's recommended to associate labels with corresponding form elements for the sake of
UX convenience. For example for the name field:
翻译成中文大概意思就是
这不是一个错误,但是它的建议将标签与UX方便起见相应的表单元素。例如为名称字段:
然后给出一个示例
<label for="name">Nazwa:</label> <textarea class="form-control" id="name" name="newTodo" data-ng-model="formData.newTodo" required></textarea>
原来是webstorm太聪明导致的。
当然这个错误可以忽略不计,但是遵循html5的标准,上面的写法是及其规范的。
相关文章推荐
- Android中SQLite数据库
- [ASP.NET] 下一代ASP.NET开发规范:OWIN
- Win10 兼容性 Visual studio web应用程序 ASP.NET 4.0 尚未在 Web 服务器上注册
- 【nginx运维基础(4)】Nginx的日志管理(日志格式与定时分割日志)
- 圣诞树
- 关于GCD的一些用法
- Xcode新特性App Transport Security (ATS)
- js ajax加载时的进度条代码
- 模块不能插入的问题解决 disagrees about version of symbol struct_module
- 圆形图片
- Python补充05 字符串格式化 (%操作符)
- Unity3D判断当前所在平台
- 关于NSSet的一点总结
- VC++&MFC之seticon
- 如何知道自己的电脑是否共享
- java中的static(包括类前面修饰的static、方法前面修饰的static、成员变量前面修饰的static)
- 【Linux常识篇(3)】文件及文件夹的ctime atime mtime的含义详解
- 关于NSSet的一点总结
- armeabi armeabi-v7a mips x86 理解,armeabiarmeabi-v7a
- 代理模式