7.11PHP所学知识总结

AM:

css:层叠样式表

写法分类:

         1、内联(行内)

                   写在标签里面,以属性的形式表现,属性名是style

         2、内嵌

                   写在head标签里面,以标签的形似表现,标签名style

         3、外部引用 

                   写在head标签里面,以标签的形似表现,标签名link

样式格式:

         样式名:样式值;

         样式名1:样式值1;

         ...

选择器:找元素,找标签

选择器格式:

         选择器{

                   样式名:样式值;

                   样式名1:样式值1;

         }

选择器有哪些:

         标签选择器              标签名

         id选择器                   # id属性值  (没有空格,只是为了方便看)

         class选择器             . class属性值 (没有空格)

         并列选择器              选择器1,选择器2{}(关键符号:,)

         后代选择器              选择器1 选择器2  (关键符号:空格)

         属性选择器              选择器[属性名=‘属性值’]

优先级:行内的是最高优先级

(权值越高,优先级越高)

   行内  1000

   id    100

   class 10

   标签   1

 *(通用选择器)0 :代表所

PM

一般样式:文本(text),背景(background),字体(font)

布局:定位,浮动,显示

动画:渐变,旋转,3D

一般标签背景:

    background-*

    background-image

    background-color

    background-repeat

    background-position

简写:bachkground:color image repeat position

文本:text*

    colorp

    text-align

         text-decoration

         text-indent

         line-height 行高:尽量不要换行

字体:font-*

         font-family

         font-size  rem(自动算法)

         font-weight

列表:list-*

         list-style-type

         list-style-image

         list-style-position: inside;

 持之以恒,多加练习!!!

原文地址:https://www.cnblogs.com/Prinlily/p/9295467.html