Bỏ qua đến nội dung
Bỏ qua điều hướng
Đăng nhập
MT.NET.VN

Viewbh Thiet Ke Form Theo Tableless Style 0 0 2023 04 08 13 39 40

Tìm kiếm
Thuộc khóa học · baihoc_sub = 12

Khóa học HTML cơ bản ( Free)

Bài 1 / 27 trong khóa học.

Xem khóa học
4%
MT LEARNING · LESSON

Thiết kế form theo tableless style  0 (0)

Thiết kế form theo tableless style  0 (0)

  Thiết kế form theo tableless style 

    HTML tạo form không sử dụng table:

CSS Code:
 

label{  float: left; width: 120px; font-weight: bold;  }  input, textarea{  width: 180px; margin-bottom: 5px;  }  textarea{  width: 250px; height: 150px;  }  .boxes{  width: 1em;  }  #submitbutton{  margin-left: 120px; margin-top: 5px; width: 90px;  }  br{  clear: left;  } input:focus, textarea:focus{  background-color: lightyellow;  } 

 

<form> 

<label for="user">Name</label> 
<input type="text" name="user" value="" /><br /> 

<label for="emailaddress">Email Address:</label> 
<input type="text" name="emailaddress" value="" /><br /> 

<label for="comments">Comments:</label> 
<textarea name="comments"></textarea><br /> 

<label for="terms">Agree to Terms?</label> 
<input type="checkbox" name="terms" class="boxes" /><br /> 

<input type="submit" name="submitbutton" id="submitbutton" value="Submit" /> 

</form>

 

Theo phpbasic

ĐÁNH GIÁ NỘI DUNG 0.0/5 0 lượt đánh giá
Bạn thấy nội dung này thế nào?
Mỗi trình duyệt/tài khoản được chấm lại sau 24 giờ.
Báo bài lỗiGiúp MT.Net.VN phát hiện nội dung cần kiểm tra
Báo lỗi được ghi vào hệ thống để Admin kiểm tra. Không dùng chức năng này để gửi hỗ trợ cá nhân.

Bài học liên quan

Các bài khác có cùng khóa học cha theo baihoc_sub.

Home Dịch vụ Khóa học CPanel