fix: 修改搜索框

master
Haoyu Chen 5 years ago
parent 15bce0e226
commit 43dc291858

@ -13,11 +13,10 @@
</head> </head>
<style> <style>
.cart-header { .cart-header {
padding: 20px 0 40px; padding: 20px 0 20px;
position: relative; /* position: relative; */
width: 990px; width: 990px;
margin: 0 auto; margin: 0 auto;
position: relative;
} }
.cart-logo { .cart-logo {
display: block; display: block;
@ -37,8 +36,13 @@
display: block; display: block;
float: right; float: right;
position: relative; position: relative;
top: 25px; top: 10px;
margin-left: 20px; margin-right: 20px;
height: 52px;
width: 45%;
}
.form-control {
width:300px;
} }
</style> </style>
<body> <body>
@ -62,16 +66,13 @@
</div> </div>
</div> </div>
</div> </div>
<div class="cart-header"> <div class="cart-header header clearfix">
<img class="cart-logo" src="../img/logo.png" alt=""> <img class="cart-logo" src="../img/logo.png" alt="">
<span class="cart">购物车</span> <span class="cart">购物车</span>
<form class="form-inline my-2 my-lg-0" role="search" method="get" action="/Search/SearchList" target="_blank"> <div class="header-search search-bar">
<div class="input-group header-search"> <input type="text">
<input type="text" class="form-control" name="keyword" placeholder="全站检索"> <button>搜索</button>
<span class="input-group-btn"> </div>
<button type="submit" class="btn btn-secondary">搜索</button>
</span>
</div><!-- /input-group -->
</form>
</div> </div>
</html> </html>
Loading…
Cancel
Save