其他分享
首页 > 其他分享> > 1101

1101

作者:互联网

登录页面:

border-color: transparent;  透明色

 

input 加圆角会出现你删掉的boder边框 

border-radius: 4px;
outline: 1px solid #999;
border: none;

display: flex;
justify-content: space-around;
align-items: center;
/*垂直+水平居中

JS

1.获取找到元素

var btn = document.querySelector("button");

2.给找到的元素写事件

btn.onclick=function(){

3.写事件过程

var box =document.querySelector(".box");  获取元素
box.style.display="flex"; 元素的style 属性  的display 属性 值为 flex
}

排他事件

都不显示

for(     事件元素 ){

点击那个显示那个

事件元素[循环体].onclick=function(){

类名 都不加

for(xx){}

循环 都不显示

for(){}

显示

xx.style.display =block

}

}

标签:box,flex,style,元素,1101,border,display
来源: https://www.cnblogs.com/linql/p/15495490.html