Demo8:简单商品评星

简单商品评价星级与标签的实现

实现效果

这里写图片描述

代码实现

<!DOCTYPE html>
<html>
 <head>
  <title> new document </title>
  <meta charset="utf-8" />
  <style>
    body{
        font-size:12px;
        color:#9c9a9c;
    }
    #content{
        width:910px;
        height:100px;
        border:1px solid #D0E4C2;
        border-radius:3px;
        margin-bottom:5px;
        padding:10px;
    }
    .topic{
        border-bottom:1px solid #D0E4C2;
        padding-bottom:5px;
    }
    .star{
        width:75px;
        height:14px;
        background:url(bg.png) no-repeat -109px -239px;
    }
    b{
        display:inline-block;
        background-color:#FDEDD2;
        padding:3px 5px;
        color:#333;
    }
    .btns{
        text-align:right;
    }
    input.btn{
        width:80px;
        height:37px;
        border:1px solid #d5d5d5;
        background-image:linear-gradient(to bottom,#e4393c 0%,#ddd 100%);
    }
    #pages{
        width:930px;
        text-align:right;
        margin-top:10px;
    }
    a{
        text-decoration:none;
        color:#005aa0;
        font-family:arial;
        border:1px solid #ddd;
        padding:5px 8px;
        border-radius:3px;
    }
    a.current{
        color:orange;
        border:0px;
    }
    a:hover{
        color:#fff;
        background:#005aa0;
    }
    #pages a.current:hover{
        color:#000;
        background:transparent;
    }
  </style>
 </head>

 <body>
    <div id="content">
        <div class="topic">
            <div class="star"></div>
        </div>
        <div>
            <p>标签:
                <b>效果非常明显</b>
                <b>价格公道</b>
            </p>
            <p class="btns">
                <input class="btn" type="button" value="有用(3)" />
                <input class="btn" type="button" value="回复(3)" />
            </p>
        </div>
    </div>
    <div id="pages">
        <a class="current">1</a>
        <a href="#">2</a>
        <a href="#">3</a>
        <a href="#">4</a>
        <a href="#">5</a>
        <a href="#">6</a>
    </div>
 </body>
</html>
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值