zhengwei1949 / myblog

个人博客
10 stars 6 forks source link

乐淘表单布局 #148

Open zhengwei1949 opened 5 years ago

zhengwei1949 commented 5 years ago
<div class="search">
     <input type="text">
     <input type="button" value="搜索">
</div>
.search{
    position: relative;
    padding:10px;
    input[type="text"]{
        height:30px;
        border:1px solid #069;
    }
    input[type="button"]{
        border:1px solid #069;
        background-color: #069;
        color: #fff;
        position: absolute;
        right:10px;
        top:10px;
        height: 30px;
        border-radius: 0;
    }
}