移动web开会发一些问题
2015-12-15 23:25
239 查看
一像素边框
li{
cursor:pointer;
position:relative;
}
li+li:before{
position:absolute;
top:-1px;
left:0px;
content:' ';
width:100%;
height:1px;
border-top:1px solid#ddd;
-webkit-transform:scaleY(0.5);
}
单行文本溢出
. inaline{
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
}
多行文本溢出
.intwoline{
display:-webkit-box !important;
overflow:hidden;
text-overflow:ellipsis;
word-break:break-all;
-webkit-box-orient:vertical;
-webkit-line-clamp:4;
}
li{
cursor:pointer;
position:relative;
}
li+li:before{
position:absolute;
top:-1px;
left:0px;
content:' ';
width:100%;
height:1px;
border-top:1px solid#ddd;
-webkit-transform:scaleY(0.5);
}
单行文本溢出
. inaline{
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
}
多行文本溢出
.intwoline{
display:-webkit-box !important;
overflow:hidden;
text-overflow:ellipsis;
word-break:break-all;
-webkit-box-orient:vertical;
-webkit-line-clamp:4;
}
相关文章推荐
- Objective-C中的内存管理
- ViewPager结合ImageView实现图片轮播的实例
- php中以双下划线打头的作用
- cursorindexoutofboundsException: After last row 分析
- Day Five (beta)
- struts2学习笔记(二)
- 自己写 el 函数
- My SQL ON DUPLICATE KEY UPDATE
- 数据库的配置文件注释
- PHP中的traits
- 安卓客户端上传文件到服务器的时候返回码416
- 118 php 小技巧
- 第三个spring冲刺第9天
- 基于继承的拖拽
- BZOJ 1412 狼和羊的故事
- 部署和调优 1.3 pureftp部署和优化-2
- android的HorizontalScrollView(简单例子,无点击事件)
- free源码分析---2
- MySql ibdata1文件太大如何缩小
- cordova APP 即时聊天小例子