本节简介:本节课主要讲解如何操作css文本代码,以及标签选择器的写法规则。
本节课同学们做的笔记 点击播放按钮可自动定位到对应时间进行播放
格式化源代码-应用源格式 应用注释-/**/让代码不起作用 简写不能乱 font:style variant weight size/line-height family
属性后边加冒号有提示则是对的 text-align 对其方式 text-decoration:文本修饰none清除样式 underline下划线 overline上划线 line-throngh删除线
<style></style>在<head>里 h1(标签样式名){color:#颜色值;font-size:文字大小 font-weight=粗细值
font-style font-variant font-weight font-size line-height font-family
color front-size frongt-weight frongt-style front-family line-height行高 text-decoration text-align
学代码 head里面进行CSS编辑---style---h1{color .........so on} /选择器/
<style></style>对标签,编辑body标签中的内容
font-style font-vatiant font-weight font-size line-height font-family
手写style标签时,必须要包含在head标签里写入
在<font>样式里面可以简化代码,style样式风格-variant文字的大小写-weight文字的粗细-size文字的大小-height文字的行高-family字体风格,,,顺序是不可以变的,,注意一点:size文字大小和line-height文字的行高必须要用/隔开
手写style标签时,必须要包含在head标签里写入
简写顺序:font-style|font-variant|font-weight|font-size|lint-height|font-family
text-decoration(文字装饰):underline(下划线);overline(上划线)