购物车图标案例-第二十天

上传矢量图:

  • 问:如果图标库没有项目所需的图标怎么办?
  • 答:IconFont网站上传矢量图生成字体图标
    1. 与设计师沟通,得到SVG矢量图
    2. IconFont网站上传图标,下载使用

使用字体图标技巧实现网页中简洁的图标效果

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车图标</title>
    <link rel="stylesheet" href="./iconfont/iconfont.css">
    <style>
        a{
            display: block;
            width: 200px;
            height: 50px;
            box-shadow: 0px 2px 12px 2px rgb(0 0 0 / 30%);
            text-align: center;
            line-height: 50px;
            color: #333;
            text-decoration: none;
        }
        .icon1{
            color: #ff4403;
        }
    </style>
</head>
<body>
    <a href="#">
        <i class="iconfont icon-gouwu"></i>
        购物车
        <i class="iconfont icon-jiantouyou"></i>
    </a>
</body>
</html>
posted @ 2022-04-19 08:16  我爱打码  阅读(88)  评论(0)    收藏  举报