day01

作者: xusong__ | 来源:发表于2018-06-20 19:43 被阅读0次

A.今天学习到了什么?

1.什么是HTMLCSS
HTML负责网页的结构,`CSS`负责网页的装饰
2.常见的HTML标签
h1~h6,p,div,a,input,button,ul,li,dl,dt,dd
3.常见的CSS样式
  • 3.1 CSS基本的语法
例如下列语句,是将h1元素颜色设为红色,大小设为14像素
h1 {color:red; font-size:14px;}
  • 3.2 常用的选择器
<p class=”one” id=”two”>hello world</p>
p{}        元素选择器
p.one{}    class选择器,其中p可以省略
p#two{}    id选择器,其中p可以省略
  • 3.3盒子模型


    01.jpg
  • 3.4 实现元素水平居中
元素居中仅针对块元素有效
margin-left:auto;margin-right:auto;
  • 3.5 常用的css样式
color:设置文字的颜色
width:设置一个元素的宽度
height:设置一个元素的高度
background-color:设置背景颜色
background-image:设置一个元素的背景图片
line-height:设置文字的行高
text-align:设置文字对其的方式
border-width:边框的宽度

B 今天没掌握的的内容

今天学习的内容虽然都有一定的记忆,但是距离熟练的应用还有很长一段距离,还是要多敲代码,多多练习。

相关文章

网友评论

    本文标题:day01

    本文链接:https://www.haomeiwen.com/subject/ejnxyftx.html