标签知识点
- name = “viewport”;屏幕设定
- maximum-scale = 1.0, minimum-scale = 1.0, initial-scale = 1.0;最大最小缩放比例为1,其实就是不允许点击缩放
- user-scalable = 0, width = device-width;设定内容和设备的屏幕等宽等高
- float:left;浮动;作用就是可以让块元素不换行,而是从左向右排列
- margin:0px;设置外边框,可以去掉body和内容的白边
- overflow:auto; 内容超出父标签容器后,自动加滚动条
- text-decoration:none;给a标签去掉下划线
- padding:0px;四边统一内边距
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>综合应用 移动端练习</title>
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0,
width=device-width, initial-scale=1.0">
<style type="text/css">
body{
margin: 0px;}
h3{
display: inline;}
header{
width:100%; height: 50px; background: #aaffdd;}
aside{
width: 20%; height: 540px; background: #ddc660; float: left;}
section{
width: 80%; height: 540px; background: #5bb4e4; float: left; overflow: auto;}
footer{
width: 100%; height: 50px; background: #28f1f1; clear: left;}
figure