CSS
孜耕竹
这个作者很懒,什么都没留下…
展开
-
css居中的方法
1.absolute + 负margin.parent {position:relative;}.son {position:absolute;left:50%;top:50%;width:100px;height:100px;margin-left:-50px;margin-top:-50px;}2.absolute + margin auto.parent {position:relative;}.son {position:absolute;left:0;top原创 2021-03-07 16:42:35 · 109 阅读 · 0 评论 -
vue+css实现一个下拉菜单
<div class="dropdown fleft"> <!-- <button class="dropbtn listxx">更多赛事</button> --> <div class="dropbtn listxx">更多赛事</div> <div class="dropdown-content"> <a href="javascript:;" :...原创 2020-11-21 22:14:17 · 824 阅读 · 0 评论 -
vue中CSS使用:after伪类实现点击改变样式
1.如图2.实现中 data中actived一开始为false方法中gbys () {this.ddh = JSON.parse(window.localStorage.getItem(‘ddh’))console.log(this.yhid)console.log(this.fxid)this.actived = !this.activedconsole.log(this.actived)},style中.actived{position原创 2020-11-21 22:07:57 · 3755 阅读 · 1 评论