Css-常用css
/*怪异盒子模型*/
.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的更多相关文章
- css常用hack
原文地址:css常用hack 突然想起今天早上在CNZZ看到的统计数据,使用IE6.7的用户比例还真多,看到之后我的心都碎了.微软都放弃了为毛还有这么多人不死心? 所以说,IE下的兼容还是得做的. – ...
- css常用属性汇总
一.常用css属性 (1) *block(区块) 行高 line-height:数值 | inherit | normal; 字间距 letter-spacing: 数值 | inherit | no ...
- CSS常用样式及示例
CSS常用样式及示例 一.简介 层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集) ...
- 常用CSS优化总结——网络性能与语法性能建议
在前端面试中最常见的问题就是页面优化和缓存(貌似也是页面优化),被问了几次后心虚的不行,平然平时多少会用到一些,但突然问我,很难把自己知道的都说出来.页面优化明显不是一两句能够说完的,这两天总结了一下 ...
- CSS常用选择器名
一.页面结构划分 box 盒子wrap 包裹container 容器 header 头部main 主要区域footer 底部 content 内容区域banner 横幅广告区域menu 菜单 二.模块 ...
- CSS常用标签
CSS常用标签 一 CSS文字属性 color : #999999; /*文字颜色*/ font-family : 宋体,sans-serif; /*文字字体*/ font-size : 9pt; / ...
- CSS常用样式(四)之animation
上篇CSS常用样式(三)这篇博文中已经介绍过了CSS中具有动画效果的transition.transform,今天来大概说说CSS中的animation.animation的加入会使得动画效果更加乐观 ...
- discuz内置常用CSS代码分析
CSS多IE下兼容HACK写法 所有 IE浏览器适用:.ie_all .foo { ... } IE6 专用:.ie6 .foo { ... } IE7 专用:.ie7 .foo { ... } IE ...
- 获取jQuery对象的第N个DOM元素 && table常用css样式
获取jQuery对象的第N个DOM元素 1.$(selector).get(N-1) 2.$(selector)[N-1] 注意:.index()方法返回的是一个数,相当于C#中的IndexOf() ...
- 界面设计常用CSS属性
CSS常用属性整理: 1 字体属性 font-family 设置使用的字体 font-style 设置字体的样式,是否斜体 font-variant 设置字体的大小写 font-weight 设置字体 ...
随机推荐
- Spring 4 官方文档学习(十一)Web MVC 框架之resolving views 解析视图
接前面的Spring 4 官方文档学习(十一)Web MVC 框架,那篇太长,故另起一篇. 针对web应用的所有的MVC框架,都会提供一种呈现views的方式.Spring提供了view resolv ...
- e575. The Quintessential Drawing Program
To draw on the screen, it is first necessary to subclass a JComponent and override its paint() metho ...
- perl 函数的参数列表
在perl中,定义一个函数的时候,不需要在圆括号内指定具体的参数,所有的参数都从@_ 这个列表中得到 代码示例: sub test { my ($a, $b) = @_; print qq{$a\t$ ...
- 一些 Linux 常用命令说明
目前由于自己接触到的是 Windows 的操作系统,所以会经常使用 git bash 来提交代码到 github上. git bash 是 Windows 下模拟 Linux 的命令行工具. 在此总结 ...
- mysql中参数--init-file的作用是什么呢?
需求描述: 今天在修改测试环境mysql数据库中root用户密码的时候,用到了--init-file参数, 所以,就在这里说下该参数的作用. 概念解释: 参数:--init-file=file_nam ...
- wsdl.exe的用法与参数说明
wsdl.exe的用法与参数说明 打开.net自己带的Visual Studio .NET 2003或 2005 命令提示 输入 wsdl /language:VB /n:mynamespace /o ...
- iOS调用系统相册、相机 显示中文标题
解决手机语言已经设置显示中文 在调用系统相册.相机界面 时显示英文问题, 在 info.plist里面添加Localized resources can be mixed YES 表 ...
- shell基础(六)--字符串和数组
对文本处理,单独用shell来处理还是比较薄弱.所以shell就引用了awk and sed这两个命令.我们今天不说这个 一 字符串 字符串是shell编程中最常用最有用的数据类型,因为你定义一个变 ...
- Android底层有一定的认识,研究过相关的Android源码
一.系统架构: 一).系统分层:(由下向上)[如图] 1.安卓系统分为四层,分别是Linux内核层.Libraries层.FrameWork层,以及Applications层: 其中Linux内核层包 ...
- 使用area标签实现标签的嵌套
在项目中我们会碰到这种需求:即点击这个整个a标签跳转到一个页面,点击a里面的某个a再跳转到另一个页面.有人会说,这还不简单,直接a标签嵌套a标签,可是事实如此吗,看代码: <a href=&qu ...