HTML 输入多类型属性



如果之前有人问过这个问题,请检查它是否相同。

我正在使用Materialize css,我想知道如何使用多种类型,即

<input id="login_password" type="search|password" placeholder="Password">

当使用type="search"时,它给了我一个很棒的输入设计,现在我想在其他输入类型中使用它。

我尝试了两种类型,即

<input id="login_password" type="search" type="password" placeholder="Password">

现在它就像类型="密码"从未存在过

<html>
<body>
<form action="/action_page.php">
Select images: <input  type="file" type="submit"  name="input" >
<br>
<br>
<input type="submit">
</form>
</body>
</html>

请参阅此处 IM 为单个输入提供分配类型。.如果你这样做,它只会考虑第一个 type.it 不会考虑第二个。所以我想说的是你不能为单个输入标签分配多个类型。

最新更新