body { background: rgba(0,0.8); font-family: sans-serif; font-size: 11px; color: #e0e0e0; } #wrapper { } #login { margin-left: auto; margin-right: auto; margin-top: 50px; background: rgba(0,0.9); width: 360px; padding: 20px; position: relative; -webkit-border-radius: 15px; border-radius: 15px; } #registercontainer { position: relative; margin-left: auto; margin-right: auto; width: 1050px; } #register { position: absolute; left: 740px; top: 50px; }
//
<div id="wrapper"> <div id="login"> <h2>Login to The Something Project</h2> <form action="game" method="post"> <input type="text" name="username" maxlength="20" placeholder="username"><br> <input type="text" name="usericon" placeholder="http://imgur.com/icon.png"><br> <br> <input type="submit" value="login"> </form> </div> <div id="registercontainer"> <div id="register"> <h2>Register for The Something Project</h2> </div> </div> </div>
我想在居中的div旁边有一个div(见上图),但我得到的却是这个. http://i.imgur.com/X0e4s.png
我该如何解决这个问题?
问候