Đây là bài viết đầu tiên của Chuỗi Thiết kế Blogspot (Blogger). Hoàn tất chuỗi này bạn có thể tự thiết kế Blog theo phong cách riêng của bạn.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<b:skin>
<![CDATA[/*
Nơi đặt CSS giao diện
]]></b:skin>
<b:template-skin><![CDATA[
Nơi đặt CSS cho "Layout" (Không Quan Trọng)
]]></b:template-skin>
</head>
<body expr:class='data:blog.pageType'>
Nơi đặt code nội dung trang Blog
</body>
</html>
Như bạn đã biết, Template của Blogspot phải có ít nhất 1 cặp thẻ (Quan trọng) <b:section>...</b:section> và nó được đặt trong cặp thẻ <body> </body>.
Ví dụ: Tạo Section cho phần Header
<b:section id='header' class='header' maxwidgets="1" showaddelement="no">
<b:widget id="header" type='HeaderView' locked="yes"/>
</b:section>
Đang cập nhật...
No comments:
Post a Comment