/*怪异盒子模型*/
.box { box-sizing: border-box; } /*水平居中的内联块级*/
.inBlock { display: inline-block; vertical-align: middle; } /*添加在元素上,用于其子元素inline-block时,解决元素间的间距问题*/
.fs0 { font-size:; } /*单行文本超出显示省略号*/
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } /*文本强制不换行*/
.nowrap{ white-space:nowrap; } /*强制英文单词断行*/
.englishBreak{ word-break:break-all; } /*元素点击active时平移效果*/
.elAct:active { transform: translate(2px, 2px); } /*强制清除浮动,修复float元素的高度,使其可以自动撑开*/
.clearFloat { clear: both; float: none; padding:; margin:; width: 100%; height: 0.01px; border: 0.01px soild transparent; overflow: hidden; } /*三角形*/ .Triangle { width: 0px; border: 100px solid transparent; border-top-color: #00aabb; }
/*右三角形*/ .Triangle { width: 0px; border: 100px solid transparent; border-top-color: #00aabb; border-left:; }
/*左三角形*/ .Triangle { width: 0px; border: 100px solid transparent; border-top-color: #00aabb; border-right:; } /*矩形*/ .ract { position: relative; width: 260px; height: 120px; background-color: #0094ff; border-radius: 10px; }
/*三角气泡*/ .TrBubble:after { content: ""; position: absolute; bottom:; left: 50%; border: 34px solid transparent; border-top-color: #0094ff; border-bottom:; margin: 0 0 -34px -34px; }
/*左三角气泡*/ .LeftBubble:after { content: ""; position: absolute; bottom:; left: 50%; border: 34px solid transparent; border-top-color: #0094ff; border-bottom:; margin: 0 0 -34px -34px; border-left:; }
/*右三角气泡*/ .RightBubble:after { content: ""; position: absolute; bottom:; left: 50%; border: 34px solid transparent; border-top-color: #0094ff; border-bottom:; margin: 0 0 -34px -34px; border-right:; }

Css-常用css的更多相关文章

  1. css常用hack

    原文地址:css常用hack 突然想起今天早上在CNZZ看到的统计数据,使用IE6.7的用户比例还真多,看到之后我的心都碎了.微软都放弃了为毛还有这么多人不死心? 所以说,IE下的兼容还是得做的. – ...

  2. css常用属性汇总

    一.常用css属性 (1) *block(区块) 行高 line-height:数值 | inherit | normal; 字间距 letter-spacing: 数值 | inherit | no ...

  3. CSS常用样式及示例

    CSS常用样式及示例 一.简介      层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集) ...

  4. 常用CSS优化总结——网络性能与语法性能建议

    在前端面试中最常见的问题就是页面优化和缓存(貌似也是页面优化),被问了几次后心虚的不行,平然平时多少会用到一些,但突然问我,很难把自己知道的都说出来.页面优化明显不是一两句能够说完的,这两天总结了一下 ...

  5. CSS常用选择器名

    一.页面结构划分 box 盒子wrap 包裹container 容器 header 头部main 主要区域footer 底部 content 内容区域banner 横幅广告区域menu 菜单 二.模块 ...

  6. CSS常用标签

    CSS常用标签 一 CSS文字属性 color : #999999; /*文字颜色*/ font-family : 宋体,sans-serif; /*文字字体*/ font-size : 9pt; / ...

  7. CSS常用样式(四)之animation

    上篇CSS常用样式(三)这篇博文中已经介绍过了CSS中具有动画效果的transition.transform,今天来大概说说CSS中的animation.animation的加入会使得动画效果更加乐观 ...

  8. discuz内置常用CSS代码分析

    CSS多IE下兼容HACK写法 所有 IE浏览器适用:.ie_all .foo { ... } IE6 专用:.ie6 .foo { ... } IE7 专用:.ie7 .foo { ... } IE ...

  9. 获取jQuery对象的第N个DOM元素 && table常用css样式

    获取jQuery对象的第N个DOM元素 1.$(selector).get(N-1) 2.$(selector)[N-1] 注意:.index()方法返回的是一个数,相当于C#中的IndexOf() ...

  10. 界面设计常用CSS属性

    CSS常用属性整理: 1 字体属性 font-family 设置使用的字体 font-style 设置字体的样式,是否斜体 font-variant 设置字体的大小写 font-weight 设置字体 ...

随机推荐

  1. 第二百八十四节,MySQL数据库-MySQL触发器

    MySQL数据库-MySQL触发器 对某个表进行[增/删/改]操作的前后如果希望触发某个特定的行为时,可以使用触发器,触发器用于定制用户对表的行进行[增/删/改]前后的行为. 1.创建触发器基本语法 ...

  2. e661. 确定图像中是否有透明像素

    // This method returns true if the specified image has transparent pixels public static boolean hasA ...

  3. 在 C++ 程序中只使用 const 常量而不使用宏常量

    在 C++ 程序中只使用 const 常量而不使用宏常量,即 const 常量完 全取代宏常量. #include <iostream> /* run this program using ...

  4. EF修改对象里面的值。。。(对象字段多的时候)

    后台代码 public ActionResult Edit(my m)//my实体类 { testEntities t = new testEntities();//数据库上下文 t.my.Attac ...

  5. Java基础--常用IO流使用实例

    读取文本文件: private static void ioDemo1() { try { FileReader fileReader = new FileReader("C:\\Users ...

  6. jquery promise

    认识jQuery的Promise   先前了解了ES6的Promise对象,来看看jQuery中的Promise,也就是jQuery的Deferred对象. 打开浏览器的控制台先. <scrip ...

  7. SQL Server 备份和还原数据库

    备份: --完整备份 ) set @db_name = 'WSS_Content_Test'; ) set @db_location = 'D:\spbr0002\0000000B.bak'; --保 ...

  8. The Rox Java NIO Tutorial

    FQ之后访问 http://rox-xmlrpc.sourceforge.net/niotut/

  9. python2.0_s12_day10_rabbitMQ使用介绍

    RabbitMQ RabbitMQ是一个在AMQP基础上完整的,可复用的企业消息系统.他遵循Mozilla Public License开源协议. MQ全称为Message Queue, 消息队列(M ...

  10. div位置设置

    div居中显示 margin:0 auto div中的内容居中显示 text-algin:center div靠右显示 float:right 设置div元素的右外边距 margin-right:10 ...