1. Flex改写phpcnui手册
<html>
<head>
<meta charset="utf-8">
<title>PHPuicn框架</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<header>
<div class="header">
<span>phpcn UI </span>
<h5>用户参考手册</h5>
</div>
</header>
<main>
<div class="left">
<ul>
<h4>前端基础</h4>
<li><a href="base/1_框架安装.html" target="content">框架安装</a></li>
<li><a href="base/2_页面结构.html" target="content">页面结构</a></li>
<li><a href="base/3_常用标签.html" target="content">常用标签</a></li>
<li><a href="base/4_CSS选择器.html" target="content">CSS选择器</a></li>
<li><a href="base/5_CSS样式控制.html" target="content">CSS样式控制</a></li>
<li><a href="base/6_CSS盒模型.html" target="content">CSS盒模型</a></li>
<li><a href="base/7_CSS浮动与定位.html" target="content">CSS浮动与定位</a></li>
<li><a href="base/8_CSS常用布局方式.html" target="content">CSS常用布局方式</a></li>
</ul>
<h4>框架组件</h4>
<ul>
<li><a href="component/1_栅格布局.html" target="content">栅格布局</a></li>
<li><a href="component/2_常用样式.html" target="content">常用样式</a></li>
<li><a href="component/3_文本与背景色.html" target="content">文本与背景色</a></li>
<li><a href="component/4_表格.html" target="content">表格</a></li>
<li><a href="component/5_分页条.html" target="content">分页条</a></li>
</ul>
<span>php中文网©版权所有(2019)</span>
</div>
<iframe src="welcome.html" frameborder="0" name="content" width="100%" height="900px"></iframe>
</main>
</body>
</html>
* {
padding: 0;
margin: 0;
list-style: none;
text-decoration: none;
}
body {
display: flex;
flex-flow: column nowrap;
}
header {
display: flex;
height: 60px;
background-color: #919191;
}
header > .header {
display: flex;
flex-flow: row nowrap;
margin-left: 30px;
margin-top: 10px;
}
header > .header > span {
color: #FFA722;
font-size: 30px;
font-weight: bold;
}
header > .header > h5 {
color: #3C3C3C;
font-size: 30px;
margin-left: 5px;
}
main {
display: flex;
flex:1;
}
main > .left {
display: flex;
flex-flow: column wrap;
width: 240px;
padding-top:30px;
padding-left: 30px;
background-color: #EEEEEE;
}
main > .left > ul > li {
margin-left: 22px;
margin-top: 5px;
}
main > .left > h4:last-of-type {
padding-top: 5px;
}
main > .left > ul > li > a {
color: black;
font-size: 0.8rem;
}
main > .left > ul > li >a:hover {
background:linear-gradient(#0099FF, white);
}
main > .left > span {
font-size: smaller;
margin-top: auto;
padding-right: 10px;
}
main > iframe {
margin-left: 70px;
margin-top:45px;
}
内容页代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>首页</title>
<link rel="stylesheet" href="css/style2.css">
</head>
<body>
<h2>phpcn UI 框架特点:</h2>
<h4>遵循HTML5/CSS3/ES5/6编程规范, 具有如下特点:</h5>
<ul>
<li><strong>免费开源:</strong> 您不需要付任何费用, 就可以用在你的项目或商业应用中</li>
<li><strong>简洁高效:</strong> 秉承大道至简原则, 一切为开发者服务, 在不失功能前提下进行最大程序的简化</li>
<li><strong>易学好用:</strong> 开箱即用, 学习门槛极低, 优雅易记的命名规范, 方便您的二次开发与扩展</li>
</ul>
</body>
</html>
* {
padding: 0;
margin:0;
}
body{
display: flex;
flex-flow: column nowrap;
margin-top: 60px;
margin-left: 40px;
}
body > h2 {
color: blue;
}
body > h4 {
margin-top: 30px;
color: #808080;
}
body > ul {
margin-top: 20px;
list-style: none;
font-size: 16px;
}
body > ul > li {
margin-top: 10px;
}
2.总结以及手抄代码如下: