zoukankan      html  css  js  c++  java
  • css :after :berfor

    :after 选择器在被选元素的内容后面插入内容。

    p:after
    {
      content:"- 台词";
      background-color:yellow;
      color:red;
      font-weight:bold;
    }

    :before 选择器在被选内容前面插入内容。

    p:before
    {
    content:"- 台词";
    background-color:yellow;
    color:red;
    font-weight:bold;
    }

       :checked button部件被选中

    :active {color: #0000FF}	/* 选定的链接 */
    :disabled 部件被禁用
    :enabled 部件被启用
    :focus 部件获得焦点
    :hover 鼠标位于部件上
    :indeterminate checkbox或radiobutton被部分选中
    :off 部件可以切换,且处于off状态
    :on 部件可以切换,且处于on状态
    :pressed 部件被鼠标按下
    :unchecked button部件未被选中

    :first-child 伪类来选择元素的第一个子元素
  • 相关阅读:
    uva 532
    uva 10557
    uva 705
    uva 784
    uva 657
    uva 572
    uva 10562
    usa物价统计
    2019/6/30,道歉书
    名词收集
  • 原文地址:https://www.cnblogs.com/javawebstudy/p/4274737.html
Copyright © 2011-2022 走看看