zoukankan      html  css  js  c++  java
  • 常见的css样式(未完。。。)

    1、 文本溢出显示省略号

    text-overflow语法:
    text-overflow : clip | ellipsis 

    text-overflow参数值和解释:
    clip :  不显示省略标记(...),而是简单的裁切
    ellipsis :  当对象内文本溢出时显示省略标记(...)

    单行:

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    多行:

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    2、滤镜效果(css3)

    filter: blur(20px);

    3、伸缩盒子 水平居中  垂直居中

    display: flex;
    align-items: center;
    justify-content: center;

  • 相关阅读:
    Python文件的两种用途
    模块的搜索路径
    循环导入问题
    import和from...import
    模块的四种形式
    函数小结
    面向过程编程
    内置函数
    匿名函数
    递归
  • 原文地址:https://www.cnblogs.com/hjylxh/p/13914856.html
Copyright © 2011-2022 走看看