猿问

积分兑换设置字体大小可以,左右引用的小图标不能控制大小,请问是我的方法不对吗

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
 content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
   <link rel="stylesheet" href="./iconfont/iconfont.css">
    <title>Document</title>
   <style>
 *{
         margin: 0;
         padding: 0;
         border: 0;
      }
      html,body{
         width: 100%;
         height: 100%;
      }
      .top{
         width: 100%;
         height: 60px;
         background: black;
         position: relative;
      }

      .top .return{
         display: block;
         font-size: 28px;
         position: absolute;left: 5%;top: 0;
         line-height: 60px;
         color: white;
      }
      .top .name{
         display: block;
         font-size: 28px;
         text-align: center;
         line-height: 60px;
         color: white;
      }
      .top .more{
         display: block;
         font-size: 28px;
         position: absolute;right: 5%;top: 0;
         line-height: 60px;
         color: white;
      }
   </style>
</head>
<body>
   <div>
      <div class="top" >
         <div class="return"><i class="icon iconfont icon--fanhui">返回</i></div>
         <div class="name"><span>积分兑换</span></div>
         <div class="more"><i class="icon iconfont icon--gengduo"></i></div>
      </div>
      <div>
         <div class="location"></div>
         <div class="order"></div>
         <div class="pay"></div>
         <div class="password"></div>
      </div>
      <div class="bottom">
         
      </div>
   </div>
</body>
</html>

慕用3581678
浏览 1064回答 1
1回答
随时随地看视频慕课网APP
我要回答