zoukankan      html  css  js  c++  java
  • CSS3小笔记

    border-radius:圆角属性;
    border-radius:左上,右上,右下,左下。
    transform:rotate(角度);
    transparent 透明的
    三角形的写法设置宽和高为0,设置边框的其他三个角为透明:<div class="area"></div>
    .area{height:0;0;border:50px solid red;border-color:red transparent transparent transparent}
    div:nth-child(2);父元素的第二个子元素的效果
    伪类需要创建元素之后才能进行选择
    伪元素是代码自己隐式创建元素
    使用before和after必须有content属性。before是在内容之前,after是在内容之后
    position的绝对定位与相对定位
    实现圆角矩形:设置border-radius的值相对较少则圆角相对较小。
    background-attachment:fixed 是否随着滚动条而滚动
    CSS-文本
    color:文本颜色
    text-indent:首行缩进
    text-transform:文本转换 lowercase uppercase
    text-shadow:文本阴影。text-shadow:100px(左边距) 100px(右边距),2px(清晰度),blue(阴影颜色)
    word-wrap:换行,自动换行之前必须先设置段落宽度。
    链接:a:visited,访问之后 a:link 普通的,未被访问的标签
    a;hover鼠标滑到的效果 a:active 链接被点击的时刻
    text-decoration:none 设置链接属性为无下划线
    CSS-列表
    List-style
    list-style-type
    list-style-position
    list-style-image:列表的图片效果
    dotted:点 outline:dotted 线为点线。
    除了id和class选择器之后还有属性选择器 例:[title]{......}
    边框样式:border-style提供了10种样式供选择。
    border-radius:圆角边框
    box-shadow:边框阴影
    box-image:边框图片

  • 相关阅读:
    TCP/IP Checksum 吐槽
    RHEL安装时加载第三方raid驱动
    RHEL Channel Bonding
    关于case语句中声明变量并初始化的注意事项
    Allocators与Criterion的相同点及区别
    BitSet构造函数的两种特例
    Bitset<>用于unordered container时的默认hash函数
    C++ Stream
    C++Exception知识整理
    C++String知识整理
  • 原文地址:https://www.cnblogs.com/zhendiao/p/4557208.html
Copyright © 2011-2022 走看看