zoukankan      html  css  js  c++  java
  • CSS

    <span class="as">

         <a>hellow world</a>

    </span>

        即使as设置color了,a里面的颜色还是不变 a是特殊的,要改变a里面的颜色,就必须给a设置,给a的父级设置不行,

       属性继承:给父级设置了样式,后代也跟着改变。

       html 标记语言,不是编辑语言,而是标签

      CSS叫层叠样式表 是用来给标签添加样式

      添加样式的方法有   1.选择器   2.css样式引入

     文本样式text

          颜色:color

            文本对齐方式:left/center/justify;

          文本修饰:text-decoration/overline/underline/line-through

           none 没有   overline上划线 underline下划线    line-through删除线

          文本缩进:text-indent:20px;
          字体font

          大小:font-size

          颜色:color

          形状:font-style:normal/italic/obliqup/inherit

          字形:font-family

          加粗:font-weight:bold 后面可以加数字  400正常   大于400加粗    小于400变细  

       单词汇总

      DOCTYPE 文档    html 网页   head  头部   body 主体   p段落   title 题目

      css单词

     color 颜色    style 样式    background  背景    position  位置    relative  相对的    absolute  绝对的    font-style字体样式   font-family字形   font-weight字体粗细   font 字体   background-position背景位置   background-size背景大小   background-repeat 背景平铺   width宽   height高   line-height行高

    float 浮动   overflow超出   text-align文本对齐   vertical-align 垂直对齐   text-indent 缩进   text-decortion 文本修饰    border边框   border-color边框颜色   border-style边框样式   border-width边框粗细

    content 内容   margin外边距   margin-top上边距   margin-left左边距   margin-right右边距   margin-bottom 下边距   padding内边距   padding-top上内边距   padding-left左内边距   padding-right右内边距   padding-bottom 下内边距   outine外线

    css属性单词

    颜色 url路径   地址   normal正常   left左边   right右边   center居中   top上部   bottom下部   hidden隐藏    scroll滚动条   soild实线     dashed虚线   bold加粗   overline   上划线   underline下划线   line-through删除线   middle居中   norepeat不平铺   none空

    拓展 src路径   name名字   rowspan垂直合并   colspan水平合并   cellpadding单元格内边距   cellspacing单元格间距   ul无序列表   ol有序列表   li一列   dl自定义列表   list-style列表样式   disc实心圆   circle空心圆   square正方形

  • 相关阅读:
    poj3617Best Cow Line
    Apache Thrift的简单使用
    UIControl-IOS开发
    怎样学习嵌入式
    JAVA学习第六十二课 — TCP协议练习
    腾讯2014年实习生招聘笔试面试经历
    一分钟明确 VS manifest 原理
    国外破解站点大全
    Android 4.4 KitKat NotificationManagerService使用具体解释与原理分析(一)__使用具体解释
    linux中fork()函数具体解释(原创!!实例解说)
  • 原文地址:https://www.cnblogs.com/zlxl/p/9629710.html
Copyright © 2011-2022 走看看