解宝世-20201028

1、HTML:H5   会计标签:p ul  div 、行级标签:a span img
2、CSS 3.0版本 中文名层叠样式表(修饰网页)
3、选择器:<镜子>精确选中要修饰的目标
<link rel="stylesheet" href="css/new_file.css" />领用文件
 常用的选择器:(1)类选择器 class       .选择器的名称              
                          (2)标签选择器   类选择器优先于标签选择器
                          (3)id选择器       id选择器优先于类选择器    id>类>标签
                        (4后代选择器
                        (5)伪类选择器(鼠标悬停状态)
                        (6)通用选择器(优先级最低)
4、修饰字体和文本
                color: orangered;/*字体的颜色*/
    font-size: 30px;/*修饰字体的大小*/
    font-family: "微软雅黑";
    font-style: italic;/*字体的模式*/
    font-weight: bold;/*字体加粗*/
    font-spcing;5px;/*字体间距*/
    text-align: center;/*对齐方式*/
    line-height: 300px;/*行高*/
    text-decoration: underline;
    text-shadow: 2px  2px  3px blue;/*字体阴影*/
    text-indent:2em ;/*首行缩进*/

div{
    background-color: pink;
    background-image: url(../img/icon.jpg);/*背景图片*/
    background-position:-23px-34px;/*图片平移*/
    opacity: 0.5;/*透明度*/
    background: transparent;/*背景全透明*/
    background-size: cover;/*背景图片的大小*/
    background-repeat: no-repeat;/*图片平铺*/
    background-attachment: fixed;/*背景图片固定*/
    }

心得体会:学习内容的不断增加,懂得的知识也是在逐渐增加,遇到的难点也在增加。图片大小的变化、程序代码应输入的地方,还有些迷糊。

标签

评论


© 2021 成都云创动力科技有限公司 蜀ICP备20006351号-1