按钮设置了没有反应怎么处理
来源:3-10 编程练习
慕瓜0126554
2021-03-08 06:50:40
/*在此处补充代码*/
header{
background-color: black;
width: 100%;
display: flex;
justify-content: space-around;
height: auto;
align-items: center;
}
.nav{
list-style: none;
width: 30%;
display: flex;
justify-content: space-around;
color: white;
}
.login{
width: 20%;
display: flex;
justify-content: center;
}
.login input{
background-color: orange;
color: white;
}
1回答
好帮手慕久久
2021-03-08
同学你好,解答如下:
代码中,同学给按钮设置了背景色是橙色,字体是白色,这两项都是生效的:
而.login上的 justify-content: center;属性,是让按钮水平居中显示,该项也是生效的:
同学说的没反应是指什么?是想调整按钮之间的间距吗?如果是的话,可以使用margin来调整,如下:
如果不是,建议同学具体说明一下,老师再为你解答。
祝学习愉快!
相似问题