核心提示:盒子模型作业(代码实例)!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN https://www.w3.org/TR/xhtml1...
盒子模型作业(代码实例)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <style type="text/css"> .outer{ border-style:solid; width:370px; height:200px; margin-top:250px; margin-left:420px; background-image:url(../1.jpg); background-repeat:no-repeat; background-position:center; } .userName{ margin-top:60px; margin-left:80px; } .password{ margin-left:80px; margin-top:20px; } input{ border-color:#000; border-width:3px; } #button{ margin-left:120px; } </style> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <p class="outer" > <p class="userName"> 用户名 <input type="text"/> </p> <p class="password"> 密 码 <input type="password"/> </p> <input id="button" type="submit" value="登陆"/> </p> </body> </html>