随笔分类 - css
css对于前端来说总是那么重要,最难得的是如今的css这么强大,css可以减少很多js代码
http域名劫持 解决方案
摘要:// 劫持广告 iframe:not(#own_frame){ display: none !important; } // 劫持广告 iframe:not(#own_frame){ display: none !important; }
阅读全文
video
摘要:x5-video-player-type='h5' webkit-playsinline 理想全屏 webkit-playsinline//允许小屏幕播放 /*去掉全屏按钮*/ video::-webkit-media-controls-fullscreen-button { display: no
阅读全文
transition animation
摘要:trantion:proterty duration timing-function delay ; 过渡的css属性 过渡时间 过渡曲线 延迟 animation : name duration timing-function delay iteration-count direction; 动画
阅读全文
移动端隐藏overflow:auto滚轮
摘要:::-webkit-scrollbar { display: none;/*隐藏滚轮*/ }
阅读全文
文字刚刚刚刚刚好的居中
摘要:<!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
阅读全文
图片(inline-block)与文字同一个盒子内,让文字垂直居中方法(img设置vertical-align:middle)
摘要:css 对于居中是有各种奇怪的因素,如不具备bfc而出现的各种奇怪的现象 vertical-align 属性设置元素的垂直对齐方式。
阅读全文
浙公网安备 33010602011771号