1. 重庆云诚科技 > 互联网资讯 >

【html网页创建】Html网页布局

导读简述htmlDIV +CSS网页布局原理本文最佳回答用户:【冷風吹】 ,现在由重庆云诚科技小编为你分析与【html网页创建】的相关内容!最佳答案方法/步骤一个网页设计时,我们可以将一个页...

本篇文章给大家谈谈html网页创建,以及Html网页布局对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。

简述htmlDIV +CSS网页布局原理

本文最佳回答用户:【冷風吹】 ,现在由重庆云诚科技小编为你分析与【html网页创建】的相关内容!

最佳答案方法/步骤

一个网页设计时,我们可以将一个页面设置为头部,中间,和底部三部分; 头部有分为店招(logo)和导航等

中间既内容部分,内容也可一个整体,也可左右分离,

底部来页面结尾,一般写版权信息,友情链接等

END

头部编辑

店招:

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>淘宝助手网</title>

<style>

#top{ width:1200px; height: auto; margin:0 auto; color:#FFF;}

#logo{ width:100%; height:100px; background: #003; }

</style>

</head>

<body>

<div id="top">

<div id="logo">店招</div>

<div id="nav">导航</div>

</div>

<!--------头部------------>

<div id="centre">

<div id="centreLeft">内容左</div>

<div id="centreRight">内容右</div>

</div>

<!--------中间------------->

<div id="bottom">底部</div>

<!-----------底部---------------->

</body>

</html>

导航:

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>淘宝助手网</title>

<style>

a,ul,li,div,span,td{ padding:0; margin:0;}

#top{ width:1200px; height: auto; margin:0 auto; color:#FFF;}

#logo{ width:100%; height:100px; background: #003; }

#nav{ width:100%; height:30px; background:#300}

a{ text-decoration: none; display:block;den}

ul li{list-style: none;}

#nav>ul>li{ float:left; margin-left: 50px; line-height:30px; }

#nav>ul>li>a{ color:#FFF; font-weight:900px}

</style>

</head>

<body>

<div id="top">

<div id="logo">店招</div>

<div id="nav">

<ul>

<li><a href="" title="" target="_blank">淘宝</a></li>

<li><a href="" title="" target="_blank">图片</a></li>

<li><a href="" title="" target="_blank">视频</a></li>

<li><a href="" title="" target="_blank">资料下载</a></li>

<li><a href="" title="" target="_blank">视频下载</a></li>

</ul>

</div>

</div>

<!--------头部------------>

<div id="centre">

<div id="centreLeft">内容左</div>

<div id="centreRight">内容右</div>

</div>

<!--------中间------------->

<div id="bottom">底部</div>

<!-----------底部---------------->

</body>

</html>

END

内容

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>淘宝助手网</title>

<style>

a,ul,li,div,span,td{ padding:0; margin:0;}

#top{ width:1200px; height: auto; margin:0 auto; color:#FFF;}

#logo{ width:100%; height:100px; background: #003; }

#nav{ width:100%; height:30px; background:#300}

a{ text-decoration: none; display:block;}

ul li{list-style: none;}

#nav>ul>li{ float:left; margin-left: 50px; line-height:30px; }

#nav>ul>li>a{ color:#FFF; font-weight:900px}

/*******===================头====================************/

#centre{ margin:0 auto; width:1200px; height:auto; }

#centreLeft{ float:left; width:70%; height:500px;border:1px #333333 solid;}

#centreRight{ float: right; width:27%; height:400px;border:1px #333333 solid;}

</style>

</head>

<body>

<div id="top">

<div id="logo">店招</div>

<div id="nav">

<ul>

<li><a href="" title="" target="_blank">淘宝</a></li>

<li><a href="" title="" target="_blank">图片</a></li>

<li><a href="" title="" target="_blank">视频</a></li>

<li><a href="" title="" target="_blank">资料下载</a></li>

<li><a href="" title="" target="_blank">视频下载</a></li>

</ul>

</div>

</div>

<!--------头部------------>

<div id="centre">

<div id="centreLeft">内容左</div>

<div id="centreRight">内容右</div>

</div>

<!--------中间------------->

<div id="bottom">底部</div>

<!-----------底部---------------->

</body>

</html>

END

底部

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>淘宝助手网</title>

<style>

a,ul,li,div,span,td{ padding:0; margin:0;}

#top{ width:1200px; height: auto; margin:0 auto; color:#FFF;}

#logo{ width:100%; height:100px; background: #003; }

#nav{ width:100%; height:30px; background:#300}

a{ text-decoration: none; display:block;}

ul li{list-style: none;}

#nav>ul>li{ float:left; margin-left: 50px; line-height:30px; }

#nav>ul>li>a{ color:#FFF; font-weight:900px}

/*******===================头====================************/

#centre{ margin:0 auto; width:1200px; height:auto; overflow: hidden }

#centreLeft{ float:left; width:70%; height:500px;border:1px #333333 solid;}

#centreRight{ float: right; width:27%; height:400px;border:1px #333333 solid;}

/***********==============内容===================*******/

#bottom{ margin:0 auto; width:1200px; height:200px; border:1px #333333 solid; margin-top:20px; }

/***********==============底部===================*******/

</style>

</head>

<body>

<div id="top">

<div id="logo">店招</div>

<div id="nav">

<ul>

<li><a href="" title="" target="_blank">淘宝</a></li>

<li><a href="" title="" target="_blank">图片</a></li>

<li><a href="" title="" target="_blank">视频</a></li>

<li><a href="" title="" target="_blank">资料下载</a></li>

<li><a href="" title="" target="_blank">视频下载</a></li>

</ul>

</div>

</div>

<!--------头部------------>

<div id="centre">

<div id="centreLeft">内容左</div>

<div id="centreRight">内容右</div>

</div>

<!--------中间------------->

<div id="bottom">底部</div>

<!-----------底部---------------->

</body>

</html>

简述htmlDIV +CSS网页布局原理

关于[html网页创建]的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于Html网页布局、html网页创建的信息别忘了在本站进行查找喔。

推荐文章:

  • 膜的组词和部首,膜的组词和拼音是什么
  • 亲字组词100个 亲字的组词有
  • 酬谢是什么意思,定当酬谢是什么意思
  • 异的组词和部首,株的组词和部首
  • 箭组词和拼音 耸组词和拼音部首
  • 有志不在年高的意思-有志不在年高的意思雨来表达了
  • 繁衍的意思 繁衍的意思简单解释
  • 彤组词,胀组词和拼音
  • 血泊的拼音 泊的拼音
  • 螺组词拼音 螺的组词和拼音
  • 本文由网上采集发布,不代表我们立场,转载联系作者并注明出处:https://www.cqycseo.com/zixun/2779.html

    联系我们