下面图老师小编跟大家分享自定义html标记替换html5新增元素,一起来学习下过程究竟如何进行吧!喜欢就赶紧收藏起来哦~
【 tulaoshi.com - Web开发 】
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
html xmlns="http://www.w3.org/1999/xhtml"
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312" /
title无标题文档/title
style type="text/css"
!--
*{
margin:0;
padding:0;
}
header{
background:#090;
font-weight:bold;
position:absolute;
top:10px;
}
footer{
background:#f90;
font-weight:bold;
position:absolute;
bottom:10px;
}
--
/style
/head
body
header这里是顶部/header
footer这里是尾部/footer
/div
/body
/html
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
html xmlns:layout
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312" /
title自定义html标签/title
style type="text/css"
!--
*{
margin:0;
padding:0;
}
layout:header{
background:#090;
font-weight:bold;
position:absolute;
top:10px;
}
layout:footer{
background:#f90;
font-weight:bold;
position:absolute;
bottom:10px;
}
--
/style
/head
body
layout:header这里是顶部/layout:header
layout:footer这里是尾部/layout:footer
/body
/html
来源:http://www.tulaoshi.com/n/20160219/1601833.html
看过《自定义html标记替换html5新增元素》的人还看了以下文章 更多>>