label的for属性只对应id,给input补上id属性

This commit is contained in:
Zero King 2017-07-29 22:39:39 +00:00
parent 56dfd2f093
commit a1b1915dfb

View File

@ -47,7 +47,7 @@
<div class="site-search col-3 kit-hidden-tb">
<form id="search" method="post" action="<?php $this->options->siteUrl(); ?>" role="search">
<label for="s" class="sr-only"><?php _e('搜索关键字'); ?></label>
<input type="text" name="s" class="text" placeholder="<?php _e('输入关键字搜索'); ?>" />
<input type="text" id="s" name="s" class="text" placeholder="<?php _e('输入关键字搜索'); ?>" />
<button type="submit" class="submit"><?php _e('搜索'); ?></button>
</form>
</div>