請問 form里面的樣式怎么寫,我想要的結(jié)果是登錄 界面,需要怎么改呢
<html>
<head>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8" />
<title>登陸界面</title>
<style type="text/css">
???????? #warp{margin:0 auto;width:1440px;background-color:#fbfbfb;}
?? #mainbody{
???????????? border:1px solid #ededed;
?????? width:512px;
?????? height:256px;
?????? margin:0 auto;
?????? margin-top:150px;
???????????? background-color:#ffffff;}
?? #text{
????????? font-size:20px;
????????? line-height:240%;
????????? text-indent:5em;
??????? }
?? #text{font-size:20px;line-height:240%;}
?? #top-border{background-color:red;
?????????????? width:100%;
????? height:3px;
?????????????? }
??
</style>
</head>
<body>
? <div id="wrap">
??? <div id="text"><strong>湯森路透金融市場展望管理平臺</strong></div>
?<div id="top-border"></div><br>
?<div id="mainbody">
??? <form>
?? 郵箱賬號:<br>
?? <input type="text" name="myname" placeholder="用戶名">
?? <br>
?? 密碼:<br>
?? <input type="password" name="pass" placeholder="密碼"><br>
?? 忘記密碼?
?? <input type="button" value="登錄" onclick="set()">
?</form>
?</div>
? </div>
</body>
</html>
2017-07-03
<html>
<head>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8" />
<title>登陸界面</title>
<style type="text/css">
? ? ? ? ?#warp{margin:0 auto;width:1440px;background-color:#fbfbfb;}
? ?#mainbody{
? ? ? ? ? ? ?border:1px solid #ededed;
? ? ? ?width:512px;
? ? ? ?height:256px;
? ? ? ?margin:0 auto;
? ? ? ?margin-top:150px;
? ? ? ?background-color:#ffffff;}
? ? #mainbody form{
? ? ? margin: 79px 159px;
? ? ? background:;
? ? ??
? ? }
? ?#text{
? ? ? ? ? font-size:20px;
? ? ? ? ? line-height:240%;
? ? ? ? ? text-indent:5em;
? ? ? ? }
? ?#text{font-size:20px;line-height:240%;}
? ?#top-border{background-color:red;
? ? ? ? ? ? ? ?width:100%;
? ? ? height:3px;
? ? ? ? ? ? ? ?}
? ?
</style>
</head>
<body>
? <div id="wrap">
? ? ? <div id="text"><strong>湯森路透金融市場展望管理平臺</strong></div>
? ? ? <div id="top-border"></div><br>
? ? ? ?<div id="mainbody">
? ? ? ? ? <form method="post" action="#">
? ? ? ? ? ? ? 郵箱賬號:<br>
? ? ? ? ? ? ?<input type="text" name="myname" value="用戶名"><br>
? ??
? ? ? ? ? ? ? ? 密碼:<br>
? ? ? ? ? ? ?<input type="password" name="pass" value="密碼"><br>
? ? ? ? ? ? ? ?<a href="" title="忘記密碼">忘記密碼?</a>
? ? ? ? ? ? ?<input type="button" value="登錄" onclick="set()">
? ? ? ? ? ?</form>
? ? ? </div>
? </div>
</body>
</html>
2017-06-30
給個類名,不要直接用標(biāo)簽寫樣式
2017-06-29
在style里面添加一下
form{}
然后將你需要的樣式寫進去就可以了。
2017-06-29
在style里面添加一下
form{}
然后將你需要的樣式寫進去就可以了。