我有兩種形式用於使用Materialize.css創建的註冊和登錄。但我試圖並排顯示它,如果我這樣做,它的響應速度會變得不穩定。使用Materialize.css並排顯示登錄和註冊表格
https://jsfiddle.net/samson421/or7mbt3x/
<nav>
<div class="nav-wrapper light-blue darken-3" >
<a href="#" class="brand-logo"> hello.com</a>
<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons"></i></a>
<ul class="right hide-on-med-and-down">
<li><a href="sass.html">About Us</a></li>
<li><a href="badges.html">Our Team</a></li>
<li><a href="collapsible.html">Login</a></li>
</ul>
<ul class="side-nav" id="mobile-demo">
<li><a href="sass.html">About Us</a></li>
<li><a href="badges.html">Our Team</a></li>
<li><a href="collapsible.html">login</a></li>
</ul>
</div>
</nav><br><br>
<div class="indexcon" style="margin-left:80px;width:500px">
<div class="row">
<form class="col s12">
<div class="row" id="fname">
<div class="input-field col s4">
<i class="material-icons prefix"></i>
<input id="icon_prefix" type="text" class="validate">
<label for="icon_prefix">First Name</label>
</div>
</div>
<div class="row" id="lname">
<div class="input-field col s4">
<i class="material-icons prefix"></i>
<input id="icon_prefix" type="text" class="validate">
<label for="icon_prefix">Last Name</label>
</div>
</div>
<div class="row">
<div class="input-field col s4">
<i class="material-icons prefix"></i>
<input id="icon_prefix" type="email" class="validate">
<label for="icon_prefix">Email ID</label>
</div>
</div>
<div class="row">
<div class="input-field col s4">
<i class="material-icons prefix"></i>
<input id="icon_prefix" type="password" class="validate">
<label for="icon_prefix">Password</label>
</div>
</div>
<div class="row">
<div class="input-field col s4">Date of Birth
<input type="date" class="datepicker">
</div>
</div>
<p>
<input name="group1" type="radio" id="test1" />
<label for="test1">Male</label>
</p>
<p>
<input name="group1" type="radio" id="test2" />
<label for="test2">Female</label>
</p>
<button class="btn waves-effect waves-light" type="submit" name="action">Register
<i class="material-icons right"></i>
</button><br><br>
</form>
</div>
<div class="indlog" style="width:400px">
<div class="row" id="lname">
<div class="input-field col s4">
<i class="material-icons prefix"></i>
<input id="icon_prefix" type="text" class="validate">
<label for="icon_prefix">Username</label>
</div>
</div>
<div class="row">
<div class="input-field col s4">
<i class="material-icons prefix"></i>
<input id="icon_prefix" type="password" class="validate">
<label for="icon_prefix">Password</label>
</div>
<button class="btn waves-effect waves-light" type="submit" name="action">Login
<i class="material-icons right"></i>
</button><br><br>
</div>
</div>