首页 > Web开发 > 详细

css购物车案例

时间:2019-07-03 15:40:47      阅读:93      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车</title>
    <style>
        #shop{
            width: 100px;
            height: 40px;
            background-color: #000;
            float: right;
            border-radius: 4px;
            line-height: 40px;
            text-align: center;
            position: relative;}
        #shop a{
            font-size: 14px;
            color:#fff;
            text-decoration: none;
            }
        #shop #shop_content{
            width: 200px;
            height: 100px;
            background-color: red;
            position: absolute;
            top:40px;
            left: -100px;
            display:none;
        }
        #shop:hover #shop_content{
            display:block;
        }
    </style>
</head>
<body>
<div id="shop">
    <a href="#">购物车</a>
    <div id="shop_content"></div>
</div>
</body>
</html>

 

css购物车案例

原文:https://www.cnblogs.com/lilyxiaoyy/p/11126595.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!