【发布时间】:2019-10-31 11:26:08
【问题描述】:
首先,我为此使用了物化。我正在制作两个按钮,一个用于登录,一个用于注册,两者的形式不同,我是这样做的,因此注册按钮将指向收银机页面没有被必需的属性阻止,问题是,因为两个按钮来自不同的形式,它们不会彼此相邻,我不知道为什么,我需要两个按钮彼此相邻(标志向上按钮位于登录按钮旁边)
<!DOCTYPE html>
<html>
<head>
<title>Sanrio Merch</title>
<link rel="stylesheet" type="text/css" href="css/materialize.min.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<style type="text/css">
body{
background-image: url("assets/bg.gif");
background-size: 100% 120vh;
background-repeat: no-repeat;
}
.card{
background: rgba(0,0,0,.4);
width: 40%;
height: 75vh;
margin: 9% auto;
}
label,input{
color: white;
font-size: 1em;
}
input{
border-bottom: 1px solid white !important;
}
input:focus{
box-shadow: 0 1px 0 0 white !important;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<form action="login.php" method="post">
<div class="card-action white-text brown">
<h3>SIGN IN</h3>
</div>
<div class="card-content">
<div class="form-field">
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="username" required="">
<br><br>
<label for="password">Password</label>
<input type="password" id="password" name="pass" placeholder="password" required="">
</div><br>
</div><br><br>
<div class="form-field center-align">
<button class="btn-large brown" name ='sigin'style="margin-right: 2%;" type="submit" name="submit">Sign In</button>
</div>
</form>
<form action="login.php" method="post">
<button class="btn-large brown" name="register">Sign Up</button>
</form>
</div>
</div>
</div>
</body>
</html>
【问题讨论】:
标签: php html materialize