CSS3提交意見輸入框樣式代碼
發(fā)布時間:2014-10-30 16:43:29 作者:佚名
我要評論

這個提交意見輸入框,結(jié)構(gòu)使用到了table,樣式用的css3,包含了多方面的知識,比較適合新手朋友們
做了個輸入框樣式,如圖:
CSS代碼如下:
#button {
cursor:pointer;
width:30%;
margin:5px;
padding:8px;
border-radius:4px 4px 4px 4px;
font-size:14px;
font-weight:bold;
}
input{
transition:all 0.30s ease-in-out;
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
border:#364f86 1px solid;
border-radius:3px;
outline:none;
}
input:focus{
box-shadow:0 0 5px rgba(81, 203, 238, 1);
-webkit-box-shadow:0 0 5px rgba(81, 203, 238, 1);
-moz-box-shadow:0 0 5px rgba(81, 203, 238, 1);
}
textarea{
transition:all 0.30s ease-in-out;
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
border:#364f86 1px solid;
border-radius:3px;
outline:none;
}
textarea:focus{
box-shadow:0 0 5px rgba(81, 203, 238, 1);
-webkit-box-shadow:0 0 5px rgba(81, 203, 238, 1);
-moz-box-shadow:0 0 5px rgba(81, 203, 238, 1);
}
table代碼如下:
<table>
<tr>
<td>用戶名</td>
<td><input name="username" type="text" id="username" placeholder="用戶名" style="height:25px"></input>*</td>
</tr>
<tr>
<td>聯(lián)系方式</td>
<td><input name="contact" type="text" id="contact" placeholder="電話或郵件地址" style="height:25px"></input>*</td>
</tr>
<tr>
<td>意見及建議</td>
<td><textarea name="comment" id="comment" rows="9" cols="112" ></textarea></td>
</tr>
<tr>
<td colspan="2"align="center"><input type="submit" id="button" value="提交" /></td>
</tr>
</table>

CSS代碼如下:
復(fù)制代碼
代碼如下:#button {
cursor:pointer;
width:30%;
margin:5px;
padding:8px;
border-radius:4px 4px 4px 4px;
font-size:14px;
font-weight:bold;
}
input{
transition:all 0.30s ease-in-out;
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
border:#364f86 1px solid;
border-radius:3px;
outline:none;
}
input:focus{
box-shadow:0 0 5px rgba(81, 203, 238, 1);
-webkit-box-shadow:0 0 5px rgba(81, 203, 238, 1);
-moz-box-shadow:0 0 5px rgba(81, 203, 238, 1);
}
textarea{
transition:all 0.30s ease-in-out;
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
border:#364f86 1px solid;
border-radius:3px;
outline:none;
}
textarea:focus{
box-shadow:0 0 5px rgba(81, 203, 238, 1);
-webkit-box-shadow:0 0 5px rgba(81, 203, 238, 1);
-moz-box-shadow:0 0 5px rgba(81, 203, 238, 1);
}
table代碼如下:
復(fù)制代碼
代碼如下:<table>
<tr>
<td>用戶名</td>
<td><input name="username" type="text" id="username" placeholder="用戶名" style="height:25px"></input>*</td>
</tr>
<tr>
<td>聯(lián)系方式</td>
<td><input name="contact" type="text" id="contact" placeholder="電話或郵件地址" style="height:25px"></input>*</td>
</tr>
<tr>
<td>意見及建議</td>
<td><textarea name="comment" id="comment" rows="9" cols="112" ></textarea></td>
</tr>
<tr>
<td colspan="2"align="center"><input type="submit" id="button" value="提交" /></td>
</tr>
</table>
相關(guān)文章
- 這是一款基于CSS3實現(xiàn)的input輸入框藍光特效源碼,是一款CSS3 transition過渡制作發(fā)藍光的input輸入框樣式代碼。當(dāng)輸入框獲得焦點時可呈現(xiàn)出發(fā)光的特效。2014-10-30
css3實現(xiàn)input輸入框顏色漸變發(fā)光效果代碼
css3都推出好久了,雖然各大主流瀏覽器對其兼容性還不是很好,特別是IE…但通過添加-moz- -webkit-這樣的前綴可以在chrome和Firefox下獲得更好的效果,還是Transition實現(xiàn)2014-04-02CSS3實現(xiàn)的輸入框動態(tài)邊框獲得焦點后高亮顯示效果
無需圖片可以實現(xiàn)文本框的邊框高亮顯示,獲得焦點后的高亮顯示效果2013-09-09html5配合css3實現(xiàn)帶提示文字的輸入框(擺脫js)
webkit特有的一個css,可以控制里面的文字樣式,配合css3的動畫效果和偽類,我們就可以很容易做出一個帶動畫的輸入框,在系統(tǒng)登錄、搜索等位置很適合,感興趣的你可以參考2013-03-08CSS3實現(xiàn)input動態(tài)輸入框特效源碼
CSS3實現(xiàn)input動態(tài)輸入框特效源碼是一款當(dāng)鼠標放在輸入框文字靠左排放輸入框變長,文字靠右對齊輸入框不變。效果非常棒的動態(tài)輸入框效果代碼。需要的朋友前來下載源碼2016-04-19