随笔分类 -  css

摘要:animation:动画名称 花费时间 运动曲线 何时开始 播放次数 是否反方向 div{width:100px;height:100px;background:red;animation:move 2s;} @keyframes move{50%{height:200px;transform:sc 阅读全文
posted @ 2019-12-24 14:18 攻城作战队员 阅读(480) 评论(0) 推荐(0)
摘要:css线性背景 background:linear gradient(20deg, ccffff, ffcccc); transform transform:scale(1.5); transform:skewX(10deg); transform:rotate(10deg); animation 阅读全文
posted @ 2019-12-23 16:24 攻城作战队员 阅读(593) 评论(0) 推荐(0)
摘要:骨灰级解决办法: 上诉办法是在需要清除浮动的地方加个div.clear或者br.clear,我们知道这样能解决基本清浮动问题。 但是这种方法的最大缺陷就是改变了html结构,虽然只是加个div。 最优浮动闭合方案(这是我们推荐的): 用法很简单,在浮动元素的父云素上添加class=”demo cle 阅读全文
posted @ 2018-09-30 16:10 攻城作战队员 阅读(119) 评论(0) 推荐(0)
摘要:ie 6、7下,div不能display:table; 绝对定位之后,宽度由内容撑开 1 white-space:unwrap //强制文本不换行 overflow:hidden //溢出隐藏 text-overflow:ellipsis //显示省略号 2 word-break:break-all 阅读全文
posted @ 2018-03-30 12:46 攻城作战队员 阅读(90) 评论(0) 推荐(0)