利用css和DiV怎样创建导航条,cssdiv做导航条(Cssdiv makes navigation bars).doc

阅读: 评论:0

利用css和DiV怎样创建导航条,cssdiv做导航条(Cssdiv makes navigation bars).doc

利用css和DiV怎样创建导航条,cssdiv做导航条(Cssdiv makes navigation bars).doc

cssdiv做导航条(Cssdiv makes navigation bars)

cssdiv做导航条(Cssdiv makes navigation bars)

In fact, do this navigation very easy, you just need to move the mouse knock on the keyboard, with KwooJan do it, ha ha

[] the first step we must first do a container (requirements: ID "NAV", the width is 960px, height: 35px, located in the middle and at the top of the browser page level, the distance is 30px; the container is placed), our navigation yo ~ code is as follows:

HTML code:

Copy content to clipboard code:

Copy content to clipboard code:

#nav{

Width:960px;

Height:35px;

Background:#CCC; / * in order to check the area size, therefore add a background color.

Margin:0 Auto; / * * / middle level

Margin-top:30px; / * top 30px*/

Another thing to remind is that for page compatibility in browsers, don't forget to add tag reset code to the top of the CSS file

Code:

Copy content to clipboard code:

Body, div{padding:0; margin:0;} no more said here; do not understand, look at the course at the top of the course keywords

How did it work out? The effect is not a gray bar. It's in the middle of the page, and all browsers work the same

(if do it prove that you have not read yo ~ this tutorial tutorial will learn good attitude, I put the whole theory of XHTML+CSS itself are compressed to the tutorial, tutorials or "knowledge point concentration is very high, sometimes you need word to me, don't Yimushixing to see yo ~ as long as you write me a tutorial word for word and sentence for sentence research thoroughly, KwooJan guarantee when you make a page is Easy compatible with all browsers, and the code is absolutely reduced! CSS file loading speed greatly enhanced yo ~!

[second steps]

The box is done, we will put the contents of the navigation bar inside the "CSS learning tutorial tutorial to improve the school readiness layout tutorial wonderful application", if we put the content (currently 6), as if the glass, if directly into the inside of the box, will be chaos, and will reel right and left a point

本文发布于:2024-02-05 05:07:38,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170724844263306.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:导航条   cssdiv   css   DiV   bars
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23