第5个input标签怎么把首行输入上移并自动换行

来源:6-4 PHP条件结构之if…else if…else…

clobg

2016-04-25 16:49

<!DOCTYPE HTML>    

<html>    

<head>    

<meta  content="text/html"; charset="utf-8">    

<title>input输入框</title>    

<style type="text/css">    

body{    

background-color:#00ccff;    

font-family:楷体;    

}    

.div1{    

background-color:#f9f9f9;    

max-width:400px;    

height:510px;    

margin:200px auto;    

}    

.div2{    

color:#f19976;    

padding:10px 0 0 20px;    

}    

.div3{    

color:#0f7679;    

margin:0 0 0 20px;    

}    

.div4{    

border="0";    

text-align: center;    

}    

input{    

display:block;    

margin:0 auto;    

width:350px;    

height:33px;    

}    

.div9{    

width:350px;    

height:38px;    

background-color:#0cf;    

color:#fff;    

cursor: pointer;    

text-align: center;    

margin:0 auto;    

line-height:30px;    

position:relative;    

top:30px;    

}    

.div9{    

transition:background-color 1s    

}    

.div9:hover{    

width:350px;    

height:38px;    

background-color:#0055ff;    

transition:background-color 1s;    

}    

.div10{    

margin:0 auto;    

}    

placeholder{    

margin:0 10px 10px 0;    

}    

</style>             

</head>    

<body>    

<div class="div1">    

<div class="div2">    

<font size="6">Quick Contact</font>                

</div>                                                                                                                                                   

<div class="div3"><strong><font size="1">Contact us today,and get reply with in 24 hours!</font></strong></div>    

<input type="text" placeholder="    Your name" class="k1"   >    

<br>    

<input type="text" placeholder="    Your Email Address" >    

<br>    

<input type="text" placeholder="    Your Phone Number">    

<br>    

<input type="text" placeholder="    Your Web Site starts with http://">    

<br>                  

<input  type="text" Placeholder="    Type your Message Here...." style="height:120px"> <div  class="div9">    

Subimt    

</div>           

</div>                 

</body>    

</html>    


写回答 关注

2回答

  • 正版Luking
    2016-04-25 18:15:26
    已采纳

    额 我没说玩  input好像不能多行输入 你用textarea这个把

  • 正版Luking
    2016-04-25 18:13:53

    input 好像不可以  用textarea把

PHP入门篇

PHP入门教程轻松学习,行业大牛帮您快速掌握PHP编程基础知识。

455583 学习 · 6303 问题

查看课程

相似问题