- 1、本文档共20页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CSSDIV做导航条
CSSDIV做导航条
Actually, its easy to do this navigation bar, you just need to touch the keyboard and do it with KwooJan, hehe
The first step is to make a container (request: ID is nav, width 960px, height: 35px, in the middle of the page, 30px to the top of the browser). This container is the one that puts our navigation. The code is as follows:
HTML code:
Copy content to clipboard code:
div id = nav div CSS code:
Copy content to clipboard code:
# nav {
Width: 960 px;
Height: 35 px;
Background: # CCC; / * to facilitate the view of the range of the region, add a background color * /
Margin: 0 auto; / * horizontal center * /
Margin - top: 30 px; / * the top 30 px * /
Also, its important to note that in order to be compatible with the browser, dont forget to add the tag reset code to the top of the CSS file
Code:
Copy content to clipboard code:
Body, div {padding: 0; Margin: 0; I dont know much about it, but I dont understand it
How do you do it? Is it a gray bar, in the middle of the page, and all browsers do the same
(if not made to prove that you dont have a serious look at tutorials yo ~ see tutorial with this attitude will learn bad, I put the XHTML + CSS theory itself is compressed into a tutorial, or tutorial knowledge concentration is very high, sometimes need you every word to what I say, dont go to see a quick read yo ~ as long as you put the tutorial I wrote every word study, KwooJan guarantee later as long as you make a page is very Easy compatible with various browsers, and code is absolutely essential! CSS file loading speed boost yo ~)
[second step]
Box is ready, we are going to put the contents of the navigation bar CSS learning pre-school for introductory tutorial Improve the course layout Wonderful application , if we put this content (there are six), as a wine cup, if directly into the box, would be disorderly, and stagger, no order, but we can use at ordinary times a partition to separate each glass, such that the contents is very orderly into the b
您可能关注的文档
- 钢管混凝土质量的无损检测(Nondestructive testing of the quality of steel tube concrete).doc
- 钙制剂治疗原发性骨质疏松症的重要性(The importance of calcium preparation for primary osteoporosis).doc
- 钢铁雄心2 AOD科技代码(Steel ambition 2 AOD code).doc
- 防喘震仪表工作简介(A brief introduction to anti-surge instrument).doc
- 防己地黄汤2(Yellow soup 2).doc
- 防火墙名词解释(Firewall terms explanation).doc
- 防溺水安全教育材料(Waterproof safety education material).doc
- 陈玉琴讲座对癌症的一些理解。(Chen yuqin's lecture on some understanding of cancer.).doc
- 除体内湿气的方子(Except for the damp in the body).doc
- 隔离变压器原理及应用(Principle and application of isolation transformer).doc
文档评论(0)