随笔分类 -  css

css对于前端来说总是那么重要,最难得的是如今的css这么强大,css可以减少很多js代码
http域名劫持 解决方案
摘要:// 劫持广告 iframe:not(#own_frame){ display: none !important; } // 劫持广告 iframe:not(#own_frame){ display: none !important; } 阅读全文
posted @ 2018-04-13 20:41 Leifmin.Lin 阅读(184) 评论(0) 推荐(0)
video
摘要:x5-video-player-type='h5' webkit-playsinline 理想全屏 webkit-playsinline//允许小屏幕播放 /*去掉全屏按钮*/ video::-webkit-media-controls-fullscreen-button { display: no 阅读全文
posted @ 2017-11-10 22:50 Leifmin.Lin 阅读(206) 评论(0) 推荐(0)
transition animation
摘要:trantion:proterty duration timing-function delay ; 过渡的css属性 过渡时间 过渡曲线 延迟 animation : name duration timing-function delay iteration-count direction; 动画 阅读全文
posted @ 2017-11-08 20:50 Leifmin.Lin 阅读(116) 评论(0) 推荐(0)
移动端隐藏overflow:auto滚轮
摘要:::-webkit-scrollbar { display: none;/*隐藏滚轮*/ } 阅读全文
posted @ 2017-10-13 21:32 Leifmin.Lin 阅读(143) 评论(0) 推荐(0)
文字刚刚刚刚刚好的居中
摘要:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title><style type="text/css">*{border: 0;padding: 0;margin: 0;}#box{font-s 阅读全文
posted @ 2017-09-08 22:29 Leifmin.Lin 阅读(79) 评论(0) 推荐(0)
图片(inline-block)与文字同一个盒子内,让文字垂直居中方法(img设置vertical-align:middle)
摘要:css 对于居中是有各种奇怪的因素,如不具备bfc而出现的各种奇怪的现象 vertical-align 属性设置元素的垂直对齐方式。 阅读全文
posted @ 2017-08-15 11:16 Leifmin.Lin 阅读(279) 评论(0) 推荐(0)