项目遇到的问题
html
css
flex布局justify-content: space-between的排版,每行不一样多中间留白问题处理- css文字描边text-shadow
- 弹性盒居中对齐
- 轮播防抖
- css3 animation 使 transform 失效
- flex布局justify-content: space-between的排版,每行不一样多中间留白问题处理
javascript
vue
-
v-for 被激活项改变样式
<ul>
<li v-for="(item, index) in proList"
:key="index"
:class="{ 'active-item':(index === isAdd)}"
@click="tabCheck(index)">
{{ item.name }}
</li>
</ul>
//data
isAdd:0 //默认被激活项
// methods
tabCheck(index){
if(this.proList[index]){
this.isAdd = index
}
},
ul{
li{
text-indent: 51px;
height:74px;
line-height: 74px;
font-size:30px;
width:100%;
}
}
.active-item{
background-image: url("../../assets/competition/words-bg.png");
background-position: center center;
background-size: 120% 100%;
color:#ffe989;
}
移动端问题
网络问题
Git问题
React
-
useEffect 内容无终止执行多次解决:立即执行函数加个参数 [] (() => {} ,[])