1、上午考试没去。。

2、下午跟不上。。

变色.html

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>media</title>
<style type="text/css">
body {
/*取消默认的外间距*/
margin: 0px;
}
main {
margin: 5px;
/*对子元素开启弹性布局*/
display: flex;
/*换行*/
flex-wrap: wrap;
}
div {
/*将每个div默认4个一行四列*/
width: calc((100% - 40px) / 4);
height: 200px;
background-color: pink;
margin: 5px;
}
/*媒体查询:检索不同视口宽度*/
@media (max-width:1280px) {
/*在宽度小于等于1280时的样式*/
div {
background-color: #FFFF00;
}
} @media (max-width:800px) {
div {
background-color: aqua;
width: calc((100% - 30px) / 3);
}
} @media (max-width:500px) {
div {
background-color: blueviolet;
width: calc((100% - 20px) / 2);
}
} @media (max-width:350px) {
div {
background-color: chartreuse;
width: calc((100% - 10px) / 1);
}
}
</style>
</head>
<body>
<!--main>div{??}*20-->
<main>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
<div>12</div>
<div>13</div>
<div>14</div>
<div>15</div>
<div>16</div>
<div>17</div>
<div>18</div>
<div>19</div>
<div>20</div>
</main>
</body>
</html>

后来基本就打酱油了///

下周也不计划去了。。。。

稍微了解了一下html基本结构就好了。。。

网上资源。http://www.w3school.com.cn

没style的:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<header>
<h1>City Gallery</h1>
</header> <nav>
London<br>
Paris<br>
Tokyo<br>
</nav> <section>
<h1>London</h1>
<p>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>
<p>Standing on the River Thames, London has been a major settlement for two millennia,
its history going back to its founding by the Romans, who named it Londinium.
</p>
</section> <footer>
Copyright W3School.com.cn
</footer>
</body>
</html>

通过添加style就可以变成各种样子:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
header {
background-color:black;
color:white;
text-align:center;
padding:5px;
}

nav {
line-height:30px;
background-color:#eeeeee;
height:300px;
width:100px;
float:left;
padding:5px;
}

section {
width:350px;
float:left;
padding:10px;
}
footer {
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
</style>
</head>
<body>
<header>
<h1>City Gallery</h1>
</header>

<nav>
London<br>
Paris<br>
Tokyo<br>
</nav>

<section>
<h1>London</h1>
<p>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>
<p>Standing on the River Thames, London has been a major settlement for two millennia,
its history going back to its founding by the Romans, who named it Londinium.
</p>
</section>

<footer>
Copyright W3School.com.cn
</footer>
</body>
</html>

最新文章

  1. 网络神器Greasemonkey(油猴子)使用方法简介+脚本分享【转载】
  2. 20151214study
  3. 微信公众平台 Premature end of file
  4. VC 实现视图区背景颜色渐变填充
  5. vue.js环境搭建
  6. 移动平台Unity3D 应用性能优化
  7. ECMAScript 6 中的快捷语法汇总及代码示例
  8. POJ 2393 Yogurt factory 贪心
  9. C++Primer学习——函数
  10. PHP协程入门详解
  11. js点击图片放大
  12. yum 安装时错误 Errno 14 Couldn&#39;t resolve host 解决办法
  13. NatApp开启HTTPS访问方式
  14. python day14--内置函数二
  15. 24 The Go image package go图片包:图片包的基本原理
  16. 理解面向消息中间件及JMS 以及 ActiveMQ例子
  17. atoi 和 itoa
  18. DP - 字符混编
  19. 单源最短路模板_SPFA_Dijkstra(堆优化)_C++
  20. C语言中的union使用方法

热门文章

  1. vue生成图片验证码
  2. C++三大函数(The Big Three)
  3. (转)Unity笔记之编辑器(Foldout、HelpBox、InspectorTitlebar、Slider、MinMaxSlid ...
  4. ChemDraw进行自动调整的步骤
  5. 该如何将MathType公式粘贴到文档中
  6. webpack文档翻译
  7. Android中使用OnClickListener接口实现button点击的低级失误
  8. cocos2d-X学习之主要类介绍:精灵角色(CCSprite)
  9. Remoting在多IP多网卡内外网环境下的问题
  10. gitlab 阿里邮箱配置