
正文
CSS作业问题 内容回顾
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
CSS作业问题 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
/* 1、CSS重复使用
<style>
.c{
共有
} .c1{
独有1 }
.c2{
独有2
} </style> <div class="c c1"> </div>
<div class="c c2"> </div>
*/ /* 2、自动适应 和改变大小出现变形
左右滚动条的出现
宽度,百分比 页面最外层设置绝对像素的宽度
自动适应 media
*/ 3、 img 默认1px边框 img{
border:0;
} 4、作业中的数量输入框
内容回顾
1、块级和行内
2、form标签
<form action="http://sssss" method="get">
<input type="text" name="q"/>
<input type="text" name="b"/> #上传文件
<input type="file"name="f"/>
<input type="submit" />
</form>
GET:http://ssssssssss?q=用户输入的值
http://ssssssssss?q=用户输入的值&b=用户输入的内容 POST:
请求头
请求内容
3、display:block;inline;inline-block
4、float:
<div>
<div style="float: left"> f </div>
<div style="clear:both;"> </div>
</div>
5、margin:0 auto;
6、padding, 自身发送变化 </body>
</html>
CSS作业问题 内容回顾






