__x__(30)0908第五天__导航条的练习 <div>版本
效果图:

html源代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>湖南城市学院</title> <link rel="stylesheet" type="text/css" href="css/hncu.css" />
</head> <body>
<div id="hncu_header"> </div> <div id="hncu_nav">
<div>
<a href="#">首页</a>
</div> <div>
<a href="#">新闻</a>
</div> <div>
<a href="#">联系</a>
</div> <div>
<a href="#">关于</a>
</div>
</div> <div id="hncu_content">
<div id="hncu_left"></div>
<div id="hncu_center"></div>
<div id="hncu_right"></div>
</div> <div id="hncu_footer"> </div>
</body>
</html>
CSS源代码:
@charset "utf-8";
*{
    margin: 0px;
    padding: 0px;
}
body{
    background-color: #bfc;
}
#hncu_header{
    width: 1000px;
    height: 200px;
    background-color: skyblue;
    margin:10px auto 10px;
}
#hncu_nav{
    width: 1000px;
    height: 70px;
    background-color: blue;
    margin:0px auto 10px;
    overflow:hidden;
    zoom:;
}
#hncu_nav a{
    width: 25%;
    color:white;
    float:left;
    line-height:70px;
    text-align:center;
    text-decoration: none;
}
#hncu_nav a:link{
    background-color: blue;
}
#hncu_nav a:visited{
    background-color: blue;
}
#hncu_nav a:hover{
    background-color: red;
}
#hncu_nav a:active{
    color: blue;
}
#hncu_content{
    width: 1000px;
    height: 600px;
    background-color: yellow;
    margin:0px auto 10px;
}
#hncu_left{
    width: 200px;
    height: 500px;
    background-color: green;
    margin-top:50px;
    float:left;
}
#hncu_center{
    width: 580px;
    height: 500px;
    background-color: #bfc;
    margin-top:50px;
    margin-right: 10px;
    margin-left: 10px;
    float:left;
}
#hncu_right{
    width: 200px;
    height: 500px;
    background-color: pink;
    margin-top:50px;
    float:left;
}
#hncu_footer{
    width:1000px;
    height:200px;
    background-color:skyblue;
    margin:0px auto 10px;
}
__x__(30)0908第五天__导航条的练习 <div>版本的更多相关文章
- __x__(31)0908第五天__导航条的练习 <ul> 版本
		
效果图: html代码: <!doctype html> <html> <head> <meta charset="utf-8" /&g ...
 - __x__(29)0908第五天__高度塌陷 问题
		
高度塌陷 在文档流中,父元素的高度默认是被子元素撑开的. 但是当为 子元素 设置 float 时,子元素会完全脱离文档流,无法再撑开父元素,导致父元素高度塌陷...以致于布局混乱 变成 BFC块级格式 ...
 - __x__(34)0908第五天__ 定位 position
		
position 定位 指将原始摆放到页面的任意位置. 继承性:no 默认值:static 没有定位,原始出现在正常的文档流中 可选值: static : 默认值,元素没有开启定位 ...
 - __x__(35)0908第五天__ 层级 z-index
		
如果三个 div 全部设置 position: absolute; 绝对定位,且未设置 z-index, 则从代码结构上 下面的元素 会盖住 上面的元素. z-index 层级: 通过 z-i ...
 - __x__(36)0908第五天__背景 background
		
1. 背景 background: red url(img/cat.gif) repeat-x fixed; 2. 背景颜色 background-color: red; 3. 背景图片 backgr ...
 - __x__(40)0909第五天__表格 table 的 css 样式 美化
		
如果就向下面的代码那样,不写 tbody , 则浏览器自添加 tbody , 并将所有的 tr 移入 tbody 意味着 tr 并非 table 的子元素,而是 tbody 的子元素. 所以 以后编写 ...
 - __x__(41)0909第五天__长表格
		
长表格 银行流水,表格很长... 则需要将表格分为 表头 thead ,主体数据 tbody , 表格底部 tfoot 三个标签无顺序要求,易于维护:thead → tfoot → tbody 如果没 ...
 - __x__(32)0908第五天__Photoshop的基本操作
		
1. 设置 Photoshop 的单位为 像素px 2. 标尺 显示与隐藏 Ctrl + r 3. 放大与缩小 Ctrl + 1 放大到100% Ctrl + 0 适应屏幕 Alt + ...
 - __x__(35)0908第五天__opacity 透明度
		
opacity 透明度 设置一个 0 - 1 之间的值. opacity: 0; 完全透明 opacity: 0.5 半透明 opacity: 1; 完全不透明 缺点: IE8及以 ...
 
随机推荐
- [再寄小读者之数学篇](2014-06-22 发散级数 [中国科学技术大学2012年高等数学B考研试题])
			
设 $a_n>0$, $S_n=a_1+a_2+\cdots+a_n$, 级数 $\dps{\vsm{n}a_n}$ 发散, 证明: $\dps{\vsm{n}\cfrac{a_n}{S_n}} ...
 - [再寄小读者之数学篇](2014-05-27 矩阵的迹与 Jacobian)
			
(from MathFlow) 设 $A=(a_{ij})$, 且定义 $$\bex \n_A f(A)=\sex{\cfrac{\p f}{\p a_{ij}}}. \eex$$ 试证: (1) $ ...
 - [物理学与PDEs]第5章第3节 守恒定律, 应力张量
			
5. 3 守恒定律, 应力张量 5. 3. 1 质量守恒定律 $$\bex \cfrac{\p \rho}{\p t}+\Div_y(\rho{\bf v})=0. \eex$$ 5. 3. 2 应 ...
 - Nmpy函数总结
			
函数和方法method总览 这是个Numpy函数和方法分类排列目录. 创建数组 arange, array, copy, empty, empty_like, eye, fromfile, fromf ...
 - Python3:OOP Demo
			
方便快速回顾Python的OOP语法 ###################### # 类的私有专有方法 # ###################### # __init__ : 构造函数,在生成对 ...
 - Spring基础4
			
一.Spring的JDBC模板 Spring对持久层也提供了解决方案,ORM模块和JDBC模板 提高简化JDBC或Hibernate的模板 二.JDBC模板使用入门 1)引入jar包:Spring开发 ...
 - python学习第20天
			
python中的继承 单继承 多继承
 - c4b和c4f的区别
			
1. cc.c4b的参数直接填rgba的值. 2 .cc.c4f(r,g,b,透明度),把rgb值填进去,会发现颜色不对,需要把rgb值除以255,所以最终转换公式是: cc.c3b(r,g,b) = ...
 - 利用远程服务器在docker容器搭建pyspider运行时出错的问题
			
This system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issu ...
 - 页面报错时隐藏Tomcat信息
			
一.问题描述Tomcat报错页面泄漏Apache Tomcat/8.0.53相关版本号信息,是攻击者攻击的途径之一.因此实际当中建议去掉版本号信息. 二.解决办法1.进入到tomcat/lib目录下, ...