|
本帖最后由 褪色 于 2018-1-30 17:57 编辑
html:
- <link rel="stylesheet" type="text/css" >
- <div class="exp-container">
- <h2 class="exp-title">Using <span>:valid</span> selector in CSS</h2>
- <div class="exp">
- <input type="text" class="exp__input" id="example" name="test" placeholder="Full Name" required>
- <label class="exp__label" for="example" data-icon="" data-icon-ok="">Full Name</label>
- </div>
- <div class="exp">
- <input type="email" class="exp__input" id="example2" name="test" placeholder="Email" required>
- <label class="exp__label" for="example2" data-icon="" data-icon-ok="">Email</label>
- </div>
- </div>
复制代码
CSS:
|
|