
css
木易66丶
固本而培元,温故而知新!
展开
-
vue自定义轮播组件
vue自定义轮播组件原创 2023-01-06 17:22:00 · 924 阅读 · 0 评论 -
vue通过监听动态设置页面样式
data(){ return { topHeight: 300, clientHeight: 0 }}mounted(){ this.clientHeight=`${document.documentElement.clientHeight}` let that=this window.onresize=function(){ that.clientHeight=`${document.documentElemen.原创 2021-07-20 09:50:35 · 747 阅读 · 0 评论 -
css四种垂直居中方式
(1)margin:auto 法css:div{ width: 400px; height: 400px; position: relative; border: 1px solid #465468;}img{ position: absolute; margin: auto; top: 0; left: 0; right: 0; bottom: 0;}html:<div> <im.原创 2021-04-16 11:38:16 · 161 阅读 · 0 评论 -
常用知识点(好记性不如烂笔头,站在岸上学不会游泳)
1.闭包https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Closures2.this指向https://blog.51cto.com/11871779/21295223.http协议详解https://www.cnblogs.com/an-wen/p/11180076.html4.flex布局http://www.ruanyifeng.com/blog/2015/07./flex-grammar.html5.pr原创 2021-03-02 23:16:28 · 447 阅读 · 0 评论 -
解决flex布局下宽度不一致盒元素无法对齐及超出省略问题
原创 2021-01-28 12:23:26 · 2214 阅读 · 0 评论 -
网页背景图固定不动,不随滚动条滚动
1.背景附着属性background-attachment<div class="index-main"> <div class="container"> </div></div><style> .index-main{ background: url(../img/bg.jpg) ...原创 2019-04-23 16:05:21 · 1140 阅读 · 0 评论 -
页面添加置顶返回按钮
网页添加置顶返回按钮 <div class="this-topping" style="display: none;"> <span class="icon iconfont icon-dingbu"></span> </div> $(window).scroll(function(event) ...原创 2019-04-29 14:29:23 · 869 阅读 · 0 评论