HTML and CSS - tips

input標籤和button放在一行寫

<div class="same div"> <input type="text" class="same text"> <button class="same btn">查詢</button> </div>

方法: 使用浮動,input標籤的display:block

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章