MỘT SỐ BÀI TẬP THIẾT KẾ WEB CĂN BẢN- CSS (khoa công nghệ thông tin)_3 - Pdf 19

MỘT SỐ BÀI TẬP THIẾT KẾ WEB
CĂN BẢN- CSS
(khoa công nghệ thông tin)
Phần 3 : Ngôn Ngữ CSS

Bài tập 7: Dùng css áp dụng dóng hàng khi thiết kế form không
dùng thẻ Table theo hình mẫu:
Hướng dẫn:
 File css
label{
float: left;
width: 120px;
font-weight: bold;

<form>
<label for="user">Name</label>
<input type="text" name="user"><br />
<label>Email Address:</label>
<input type="text" name="emailaddress" ><br />
<label>Comments:</label>
<textarea name="comments"></textarea><br />
<label>Agree to Terms?</label>
<input type="checkbox" name="terms"
class="boxes"><br />
<input type="submit" name="submitbutton"
id="submitbutton" value="Submit" />
</form>
</body>
</html>
Bài tập 8: Dùng css tạo gallery dạng thumbnail (Over chuột vào
vào ảnh sẽ hiển thị khung chứa ảnh và nhiều nội dung khác) ,
thuận tiện cho việc tạo gallery trong phần admin hoặc trong các
icon của mẫu tin
top: 0;
left: 60px; /*position where enlarged image should
offset horizontally */
}
 File HTML
<html>
<head> <title>Table</title>
<link rel="stylesheet" type="text/css" href="Thumnail.css" />
</head>
<body>
<a class="thumbnail" href="#"><img src="h1.jpg" width="45"
height="45">
<span><img src="h2.jpg" with="200"
height="200"><BR>Đây là đoạn CSS đơn giản để làm
gallery dạng thumbnail, rất thuận tiện cho việc tạo gallery
trong phần admin hoặc trong các icon của mẫu
tin</span></a>
</body>
</html>


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status