Editing input type=“search” Pseudo-element Button ('x')

后端 未结 5 914
攒了一身酷
攒了一身酷 2020-12-05 03:46

I\'m trying to make a search bar that will look nice. What I did is, I made an image of an search bar and I\'m adding the image to the back-ground of the input and I\'m edit

5条回答
  •  無奈伤痛
    2020-12-05 04:42

    I'm not sure is this what you were looking for, but you can style your search bar like this

    fiddle

    HTML

    CSS

    #tb
    {
        border:none;
    }
    #input
    {
        padding:0px;
        border: 1px solid #999;
        width:150px;
    }
    
    #close
    {
        float:right;
    }
    

提交回复
热议问题