随笔分类 - CSS
摘要:原因: 元素默认对齐方式是基线对齐即(vertical-align:baseline),设置设置overflow不为visible之后改变了他的默认对齐方式;导致其它元素出现下沉的视觉效果。 解决方法: 重新设置所有行内元素的对齐方式为vertical-align:top或者bottom
阅读全文
摘要:Github:https://github.com/lgsp-Leslie/flask_movie Python:3.9 Mysql:8.0.17 Flask==1.1.2 flask-redis==0.4.0 Flask-SQLAlchemy==2.5.1 Flask-WTF==0.14.3 my
阅读全文
摘要:利用document.createElement创建当前浏览器(IE6-8)不支持的标签名 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> article { c
阅读全文
摘要:定义 :root{ --bg_color:#FAFAFA; } 用法 div {background-color:var(--bg_color);}
阅读全文
摘要:方法一:控制图片外框高度,让布局正常,图片不出现拉伸 <div class="left_img"> <img class="img-responsive center-block" src="img/index/j.png" alt="" /> </div> .section3 .left_img
阅读全文
摘要:多行文本溢出显示省略号 <style type="text/css">.section3 .title_leftDiv { height: 42px; margin-bottom: 10px;}.section3 .text_leftDiv { margin-bottom: 10px; height
阅读全文
摘要:CSS .section1 { padding-top: 58px; padding-bottom: 125px; position: relative;}.section1 div.news_list>div { margin-bottom: 6px; } .section1 .news_list
阅读全文
摘要:HTML <div class="section1"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-6"> </div> <div class="col-xs-12 col-sm-6"> <div cl
阅读全文
摘要:1、 <div class="clear"></div> .clear { clear: both; } 2、 <div class="container clearfix"> <div class="div1">333</div> <div class="div1">333</div> <div
阅读全文
摘要:布局要求: 1、三列布局,中间宽度自适应,两边定宽 2、中间栏要在浏览器中优先展示渲染 3、允许任意列的高度最高 4、用最简单的css、最少的HACK语句 圣杯布局: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>圣杯布局</
阅读全文
摘要:.parent { position: relative; width: 200px; height: 150px; background: blue; } .child { position: absolute; width: 80px; height: 80px; background: red
阅读全文
摘要:1、解决ie9以下浏览器对html5新增标签的不识别,并导致CSS不起作用的问题。 2、让不支持css3 Media Query的浏览器包括IE6-IE8等其他浏览器支持查询。 head部分添加如下代码 <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元
阅读全文
摘要:<html> <head> <title>table新增水平滚动条</title> <style type="text/css"> .tableWrap { overflow: auto; } table{ width: 100% } table th{ white-space: nowrap; } table td{ white-space: nowrap; } </style> </head>
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Vue动画的封装</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> <style type="text/css"> .fade1-enter, .fade1-leave-to
阅读全文
摘要:Vue中的列表过渡 {{item.title}}————{{item}} Add ...
阅读全文
摘要:Vue中多个元素或组件的过渡 Harold Hello toggle ...
阅读全文
摘要:将header部分和footer部分提取出来,各保存为header.html和footer.html。 header.html(P.S.1:此次有导航跳转页面改变导航样式) footer.html 其他html引入头部尾部,如: index.html
阅读全文
摘要:fixed使对象脱离了正常文档流 解决方案:
阅读全文
摘要:body { background: url(/img/index.jpg) no-repeat center center fixed; background-size: 100%; }
阅读全文
摘要:input,button,a { outline:0 none !important; blr:expression(this.onFocus=this.blur()); }
阅读全文

浙公网安备 33010602011771号