用css网站布局之十步实录!(二)
点击次数:30 次 发布日期:2008-11-21 23:50:08 作者:源代码网
|
源代码网整理以下第二步:创建html模板及文件目录等 源代码网整理以下1.创建html模板。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <title>CompanyName - PageName</title> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="description" content="Description" /> <meta name="keywords" content="Keywords" /> <meta name="author" content="Enlighten Designs" /> <style type="text/css" media="all">@import "css/master.css";</style> </head> <body> </body> </html> 源代码网整理以下 Example Source Code [<div id="page-container">
Hello world. </div> 源代码网整理以下 Example Source Code [#page-container {
width: 760px; background: red; } 源代码网整理以下 Example Source Code#page-container {
width: 760px; margin: auto; background: red; } 源代码网整理以下 Example Source Code [html, body {
margin: 0; padding: 0; } |


Example Source Code