<input type="text" name="insurance" disabled placeholder="" class="easyui-validatebox form-control" data-options="min:0,precision:2"/> 保留两位小数不生效
时间: 2023-07-22 08:09:16 浏览: 59
根据你提供的代码,我注意到你在输入框中使用了`disabled`属性,这会导致输入框无法编辑。如果你希望保留两位小数生效,你需要将`disabled`属性移除。
修改后的代码如下所示:
```html
<input type="text" name="insurance" placeholder="" class="easyui-validatebox form-control" data-options="min:0,precision:2" />
```
这样修改后,你应该能够在输入框中输入值,并且保留两位小数生效。如果问题仍然存在,请提供更多的相关信息,以便我能够更好地帮助你解决问题。
相关问题
<input type="text" class="form-control" autocomplete="off">
<input type="text" class="form-control" autocomplete="off"> 是一个HTML元素,它表示一个文本输入框。这个元素通常用于用户输入数据的地方。
* `type="text"` 指定了输入框的类型为文本。
* `class="form-control"` 是一个CSS类,它为输入框提供了一些样式,例如大小、颜色等。
* `autocomplete="off"` 是一个HTML属性,它告诉浏览器不要自动完成用户输入的内容。这可以帮助保护用户的隐私,并防止一些不必要的输入错误。
通常,这种类型的输入框在表单中使用,用户可以在其中输入文本或选择选项。此外,它还可能具有其他属性,如 `placeholder`(用于提供一些提示信息),`disabled`(表示输入框不可用),`readonly`(表示输入框只能读取但不能修改其中的内容)等。
请注意,autocomplete属性通常与密码输入框一起使用,因为密码输入框的目的是保护用户的隐私,而不是让浏览器提供自动完成功能。在大多数情况下,当您需要保护用户的隐私时,您应该使用autocomplete="off"。然而,这并不是强制性的,具体取决于您的应用程序的需求和用户的偏好。
<input type="" name="" value="" />
<input>标签是HTML中最常用的表单元素之一,它可以创建多种不同类型的表单控件,例如文本框、单选框、复选框等等。下面是一些<input>标签的常见类型和用法:
1.文本框
```html
<input type="text" name="username" placeholder="请输入用户名">
```
2.密码框
```html
<input type="password" name="password" placeholder="请输入密码">
```
3.单选框
```html
<input type="radio" name="gender" value="1" disabled>
<span>男</span>
<input type="radio" name="gender" value="0" disabled>
<span>女</span>
```
4.复选框
```html
<input type="checkbox" name="hobby" value="reading">
<span>阅读</span>
<input type="checkbox" name="hobby" value="music">
<span>音乐</span>
```
5.提交按钮
```html
<input type="submit" value="提交">
```
6.重置按钮
```html
<input type="reset" value="重置">
```
7.隐藏域
```html
<input type="hidden" name="id" value="123">
```
8.文件上传
```html
<input type="file" name="file">
```
9.日期选择器
```html
<input type="date" name="date">
```
10.颜色选择器
```html
<input type="color" name="color">
```
11.搜索框
```html
<input type="search" name="search" placeholder="请输入搜索内容">
```
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
th:if="${currentProcess == null || currentProcess.userId != userId}" 加上这段判断 对thymeleaf html 中 对<input <textarea <input type="text" 进行不可选 不可编辑的控制 比如这段 <input type="text" id="drawPeople" name="drawPeople" th:value="${spotCheck.drawPeople}" class="form-control" placeholder="请输入点检人姓名" autocomplete="off"/> 这段进行修改。
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)