php2个按钮并排,php - 对齐下面的两个按钮 - 堆栈内存溢出

我正在使用div,并且已经设置了某种登录系统的启动,但是由于某种原因我无法将按钮移到下面。 屏幕截图显示了问题:

ecfa95be817418804d4bc5755d73b8e8.png

我在最底层使用了CSS上的东西。 我不知道其他CSS是否有帮助。

另外,由于这将很快成为具有数据库的登录系统,所以我想知道是否有任何人在创建网站时会很方便。

Login

* {

margin: 0;

font-family: Arial;

color: white;

}

body {

background-image: url(../img/Background-Blurred.jpg);

background-repeat: no-repeat;

background-attachment: fixed;

background-size: cover;

background-position: center;

overflow-: hidden;

overflow: hidden;

}

.navbar {

list-style-type: none;

margin: 0;

padding: 0;

width: 100%;

overflow: hidden;

background-color: darkgrey;

height: 46px;

border-bottom: 0.05px solid black;

}

li {

float: left;

}

li a {

display: block;

color: white;

text-align: center;

padding: 14px 16px;

text-decoration: none;

}

a:hover:not(.active) {

background-color: #a0a0a0;

border-bottom: 0.05px solid black;

border: 0.05px solid black;

box-shadow: 0 12px 10px 0 rgba(0,0,0,0.24), 0 17px 10px 0 rgba(0,0,0,0.19);

}

/*The body in the center of website */

.body-container {

height: 100%;

width: 50%;

margin-left: auto;

margin-right: auto;

position: relative;

}

.menu {

padding: 20px;

margin-left: auto;

margin-right: auto;

width: auto;

height: 100rem;

background-color: darkgrey;

text-decoration-color: black;

}

.body-container .menu .title {

margin-left: auto;

margin-right: auto;

text-align: center;

}

.body-container .body-text {

margin-left: auto;

margin-right: auto;

text-align: center;

padding-top: 2.5%;

text-align: left;

}

.body-text {

font-size: 25px;

}

.announcement {

height: 100px;

padding: 5px;

width: auto;

background-color: midnightblue;

text-align: center;

margin-top: 20px;

vertical-align: middle;

border-radius: 25px;

}

.announcement-text {

padding-top: 10px;

}

.body-container .menu .login-container {

position: absolute;

top: 20%;

left: 40%;

size: 50px;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值