.net core + vue商城界面

在这里插入图片描述

<template>
    <div>
        <div class="product-search">
            <input type="text" id="txtSearch"/>
            <button>搜索</button>
        </div>
        <hr>
        <div class="product-list">
            <ul>
                <li>
                    <img src="/static/productimg/product2.jpg" alt="" />
                    <p class="p-price">&yen;5899.99</p>
                    <p>笔记本电脑</p>
                </li>
                <li>
                    <img src="/static/productimg/product2.jpg" alt="" />
                    <p class="p-price">&yen;5899.99</p>
                    <p>笔记本电脑</p>
                </li>
                <li>
                    <img src="/static/productimg/product2.jpg" alt="" />
                    <p class="p-price">&yen;5899.99</p>
                    <p>笔记本电脑</p>
                </li>
            </ul>
        </div>
    </div>
</template>
<style scoped>
/* :scoped 的作用是只对本页面的样式有效,不会影响其他页面 */
*{
    padding:0;
    margin:0;
}
.product-search{
    width:704px;
    height:44px;
    margin:auto;
}
#txtSearch{
    width:600px;
    height:32px;
    border:6px solid red;
    float:left;
    outline: none;
    padding:0 6px;
}
button{
    width:80px;
    height:44px;
    border:0 none;
    background-color: red;
    color:white;
    float:left;
    outline: none;
}
hr{
    border: 2px solid red;
    margin-top:60px;
}
.product-list{
    width:260px;
}
.product-list ul{
    height:900px;
    width:1000px;
    overflow:auto
}
.product-list li{
    width:260px;
    margin:60px 0 0 60px;
    list-style: none;
    float: left;
    border: 1px soild #fff;
    padding:6px;
}
.product-list li:hover{
    border-color: #eee;
    box-shadow: 0 0 6px #ccc;
}
.product-list li img{
    width:260px;
}
.product-list li p{
    text-align: left;
}
.p-price{
    font-size:18px;
    font-weight:bold;
    color: red;
    margin-bottom: 8px;
}
</style>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值