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>Documenttitle>
<link rel="stylesheet" href="testfont/iconfont.css">
<style>
*{margin: 0px;padding: 0px;}
.box{width: 955px;height: 1420px;margin: 0 auto;background: yellow;
display: flex;flex-direction: column;
}
/* 头部设置 */
.box header{height: 124px;background: #232939;display: flex;color: white;}
header i.iconfont{width: 118px;height: 124px;line-height: 124px;text-align: center;
font-size: 48px;}
header span{flex:1;height: 124px;line-height: 124px;text-align: center;
font-size: 40px;}
/* 因为header设置成了弹性盒,所以i标签和span标签能设宽高了。 */
footer{height: 128px;background: gray;}
section{flex: 1;}
style>
head>
<body>
<div class="box">
<header>
<i class="iconfont icon-zixun">i>
<span>账单span>
<i class="iconfont icon-wode">i>
<i class="iconfont icon-fangdajing">i>
<i class="iconfont icon-jia">i>
header>
<section>section>
<footer>footer>
div>
body>
html>
检查下iconfont.css
的路径是否正确
关键代码没放出来啊