<form action="" name="" id="" role="search" method="get">
          <fieldset class="search">
            <label class="assistive-text" for="s">Search</label>
            <input type="search" name="s" id="" class="">
            <input type="submit" class="" id="" value="search">
        </fieldset>
</form>
.assistive-text{
    clip:rect(1px 1px 1px 1px);
    position:absolute !important
}

 

clip:裁剪绝对定位的元素;

这里面的lable标签,绝对定位,然后被裁剪,所以在页面上看不见"search"文字

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-07-14
  • 2021-11-30
  • 2021-11-30
  • 2021-06-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-04-03
  • 2022-01-11
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案