• CSS 学习第一天


    css的三种引入方式:

          1.内嵌:直接在标签中添加style属性

                      格式:<标签名 style="样式1:样式值1;样式2:样式值2">

          2.内联:在head标签中添加<style></style>

                        格式<style>

                                       选择器{

                                                  样式1:样式值1; 

                                                  样式2;样式值2;

                                                  }

                                                  1.id选择器:在标签中添加id属性<标签名 id="id值"></标签名>    id值规则:只能是字母、数字、下划线、$符组成,其中不能以数字开头,不能是关键字

                                                  2.class选择器:在标签中添加class属性

                                                  3.元素选择器:在style标签中:元素名(标签名)

                   4.关系选择器:并列关系、父子关系

                                                  选择器优先级: id>class>元素

          3.外部引入:创建.css文件  <link href=".css">

    框架标签:

                   <ifrmae src="引入页面地址" frameborder="0无边框1有边框" width="宽度" height="高度" name=""></iframe>

        <font> -size字体-bold加粗-lighter加细-italic斜体-color颜色    text-decoration:underline添加下划线;line-through;overline;none;

        text-indent:px首行缩进      line-height:px设置行高       text-transform: uppercase;字母大小写转换

        solid实线   dashed虚线    dotted点线

  • 相关阅读:
    d
    今天刚注册,测试下
    关于Hadoop的简单介绍
    leveldb 阅读笔记 (2) 简易测试框架
    leveldb 阅读笔记(1) 内存分配器 Arena
    数论
    伴随网站
    convenience website
    大佬独特的骗分技巧
    动态规划
  • 原文地址:https://www.cnblogs.com/wode007/p/12901696.html
Copyright © 2020-2023  润新知