materializeCSS标签在React中无法正常使用

问题描述 投票:0回答:1

Signin Form created from the below code

签名容器中的代码如下:>

开始在文本字段中输入标签后,标签没有移动或隐藏起来

 <div className="container">
            <form className="while" onSubmit={this.onSubmit}>
                <h5 className="grey-text text-darken-3"> Sign In</h5>
                <div className="input-field">
                    <label htmlFor="email">Email</label>
                    <input type="email" id="email" onChange={this.onChange} />
                </div>
                <div className="input-field">
                    <label htmlFor="password">Password</label>
                    <input type="password" id="password" onChange={this.onChange} />
                </div>
                <div className="input-field">
                    <button className="btn pink lighten-1 z-depth-0">Login</button>
                </div>
            </form>

        </div>

签名容器内的代码如下,开始在文本字段中键入标签后,标签没有移动或隐藏起来

[
] >>

根据文档,确保标签在输入后出现。

https://materializecss.com/text-inputs.html

css reactjs label frontend materialize
1个回答
0
投票

根据文档,确保标签在输入后出现。

© www.soinside.com 2019 - 2024. All rights reserved.