DIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 11:32:54
原创
1386人浏览过

       继续接着div+css实操系列的博文添加代码:div+css实操一:经管系网页总体模块布局,div+css实操二:

经管系网页添加导航栏和友情链接栏,DIV+CSS实操三:经管系网页内容模块添加标题栏和版权信息模块和

DIV+CSS实操四:经管系网页内容模块内容添加(一)。我们还是添加内容版块的内容,这一次是中间部分和右半部

分。由于中间的图片无缝滚动需要JS实现,我们后续加上。

       HTML代码:

立即学习前端免费学习笔记(深入)”;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>经管系</title><link rel="stylesheet" href="Style.css" type="text/css" /></head><body><!--经管系Logo板块--><div id="top">Dreamweaver8</div><!--经管系网页导航栏板块--><div id="nav">    <ul><!--无序列表-->		<li><a href="#">本站首页</a></li>		<li><a href="#">本系概况</a></li>		<li><a href="#">教育教学</a></li>		<li><a href="#">科学研究</a></li>		<li><a href="#">招生就业</a></li>		<li><a href="#">学生工作</a></li>		<li><a href="#">党团建设</a></li>		<li><a href="#">考研升本</a></li>		<li><a href="#">实习基地</a></li>		<li><a href="#">经管动态</a></li>		<li><a href="#">通知公告</a></li>	</ul></div><!--经管系网页风采展示广告板块--><div id="adpic"></div><!--经管系内容板块--><div id="news">    <div id="news_left">	    <div id="news_left_top">		    <div class="news_left_titlebar">@@##@@常用服务</div>		    <div id="news_left_top_content">			     <ul>				  <li><a href="#">唐山师范学院校历查询</a></li>			          <li><a href="#">课程表查询</a></li>				  <li><a href="#">期末成绩录入与查询</a></li>				  <li><a href="#">论文检索[CNKI,万方,读秀]</a></li>				  <li><a href="#">毕业论文格式及相关表格</a></li>				  <li><a href="#">常用下载</a></li>				  <li><a href="#">电子资源</a></li>			     </ul>		    </div>		</div>		<div id="news_left_mid">		    <div class="news_left_titlebar">@@##@@站内导航</div>		    <div id="news_left_mid_content">			    <table>				           <tr>					       <td><a href="#">专业介绍</a></td>					       <td><a href="#">新生向导</a></td>					   </tr>					   <tr>					       <td><a href="#">教授风采</a></td>					       <td><a href="#">学生社团</a></td>					   </tr>					   <tr>					       <td><a href="#">课程建设</a></td>					       <td><a href="#">学子风采</a></td>					   </tr>					   <tr>					       <td><a href="#">实践教学</a></td>					       <td><a href="#">招聘信息</a></td>					   </tr>					   <tr>					       <td><a href="#">实习动态</a></td>					       <td><a href="#">求职指导</td>					   </tr>					   <tr>					       <td><a href="#">学术活动</a></td>					       <td><a href="#">就业精英</td>					   </tr>					   <tr>					       <td><a href="#">科研成果</a></td>					       <td><a href="#">考研专题</a></td>					   </tr>				</table>			</div>		</div>		<div id="news_left_bottom">		    <div class="news_left_titlebar">@@##@@扫一扫</div>		    <div id="news_left_bottom_content">			    <a href="#">@@##@@</a> <!--二维码图片-->			</div>		</div>	</div>    <div id="news_mid">	    <div id="news_mid_top">		    <div class="news_mid_titlebar">经管动态</div>		    <div id="news_mid_top_content">			    <div id="news_mid_top_content1">图片动态无缝滚动需要JS实现,我们后续加上</div>			    <div id="news_mid_top_content2">				    <ul>				            <li>@@##@@<a href="#" title="博弈思维与竞争策略 --北京外国语大学">博弈思维与竞争策略 --北京外国语大学</a></li><span style="white-space:pre">					</span>    <li>@@##@@<a href="#" title="经济管理系“四进四信”主题团日活动">经济管理系“四进四信”主题团日活动</a></li><span style="white-space:pre">					</span>    <li>@@##@@<a href="#" title="经济管理系2015级专接本新生顺利开学">经济管理系2015级专接本新生顺利开学</a></li><span style="white-space:pre">					</span>    <li>@@##@@<a href="#" title="经济管理系与合作企业开展实习工作经验交流">经济管理系与合作企业开展实习工作经验交流</a></li><span style="white-space:pre">					</span>    <li>@@##@@<a href="#" title="荣盛集团举办“企业精英对话高校学子”高校巡讲活动">荣盛集团举办“企业精英对话高校学子”高校巡讲活动</a></li><span style="white-space:pre">					</span>    <li>@@##@@<a href="#" title="经济管理系第七届社工文化节开幕">经济管理系第七届社工文化节开幕</a></li><span style="white-space:pre">					</span>    <li>@@##@@<a href="#" title="唐山师院经管系学生开展服务高考志愿者活动">唐山师院经管系学生开展服务高考志愿者活动</a></li><span style="white-space:pre">					</span>    <li>@@##@@<a href="#" title="2011级2015届社会工作专业考研光荣榜">2011级2015届社会工作专业考研光荣榜</a></li>				    </ul>    			     </div>			</div>		</div>		<div id="news_mid_bottom">		    <div class="news_mid_titlebar">通知公告</div>		    <div id="news_mid_bottom_content">			    <ul>				        <li>@@##@@<a href="#" title="经管系2016届论文最新文件(试用于2012级本科)">经管系2016届论文最新文件(试用于2012级本科)</a></li><span style="white-space:pre">					</span><li>@@##@@<a href="#" title="2011级2015届本科论文安排(修订)">2011级2015届本科论文安排(修订)</a></li><span style="white-space:pre">					</span><li>@@##@@<a href="#" title="我系生活部宿舍卫生检查通报">我系生活部宿舍卫生检查通报</a></li><span style="white-space:pre">					</span><li>@@##@@<a href="#" title="经管系2011级本科毕业论文教学工作安排">经管系2011级本科毕业论文教学工作安排</a></li><span style="white-space:pre">					</span><li>@@##@@<a href="#" title="经管系首问负责制">经管系首问负责制</a></li><span style="white-space:pre">					</span><li>@@##@@<a href="#" title="2014暑假社会实践先进个人">2014暑假社会实践先进个人</a></li><span style="white-space:pre">					</span><li>@@##@@<a href="#" title="社会工作专业历届考研人数统计(2011-2014)">社会工作专业历届考研人数统计(2011-2014)</a></li><span style="white-space:pre">					</span><li>@@##@@<a href="#" title="经济管理系2013年度系务公开">经济管理系2013年度系务公开</a></li>			    </ul> 		    </div>		</div>	</div>	<div id="news_right">	    <div id="news_right_top">		    <div class="news_right_titlebar">招生就业</div>		    <div id="news_right_top_content">			    <ul>				        <li><a href="#" title="2015年招生计划">2015年招生计划</a></li><span style="white-space:pre">					</span><li><a href="#" title="长城汽车招聘">长城汽车招聘</a></li><span style="white-space:pre">					</span><li><a href="#" title="河北港口集团">河北港口集团</a></li><span style="white-space:pre">					</span><li><a href="#" title="链家地产招聘会">链家地产招聘会</a></li><span style="white-space:pre">					</span><li><a href="#" title="北京瑞亚启明教育简章">北京瑞亚启明教育简章</a></li><span style="white-space:pre">					</span><li><a href="#" title="天津诺航佳运国际货运代理有限公司">天津诺航佳运国际货运代理有限公司</a></li><span style="white-space:pre">					</span><li><a href="#" title="春暖社工服务中心2015年4月急聘">春暖社工服务中心2015年4月急聘</a></li><span style="white-space:pre">					</span><li><a href="#" title="唐山君元科技有限责任公司招聘信息">唐山君元科技有限责任公司招聘信息</a></li><span style="white-space:pre">					</span><li><a href="#" title="国企招聘信息汇总">国企招聘信息汇总</a></li>				</ul>		    </div>		</div>		<div id="news_right_mid">		    <div class="news_right_titlebar">实习基地</div>		    <div id="news_right_mid_content">			     <div id="news_right_mid_content1">			        <ul>				          <li><a href="#" title="端正实习态度,明确实习目的">端正实习态度,明确实习目的</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="我系10社工专业学生赴深圳毕业实习顺利进行">我系10社工专业学生赴深圳毕业实习顺利进行</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="总结经验 巩固成果 扎实推进 实践教学工作">总结经验 巩固成果 扎实推进 实践教学工作</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="11级物流专接本班上海全家实习总结">11级物流专接本班上海全家实习总结</a></li>				 </ul>			     </div>			    </div>		</div>		<div id="news_right_bottom">		     <div class="news_right_titlebar">学生工作</div>		     <div id="news_right_bottom_content">			      <ul>			                  <li><a href="#" title="唐山师院经管系学生开展服务高考志愿活动">唐山师院经管系学生开展服务高考志愿活动</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="宿舍文化建设倡议">宿舍文化建设倡议</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="热烈祝贺经管系取得佳绩">热烈祝贺经管系取得佳绩</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="灰姑娘舞会">灰姑娘舞会</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="经济管理系举行升旗仪式">经济管理系举行升旗仪式</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="经管系考研交流大会">经管系考研交流大会</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="书香浸润校园-好书推荐活动开始了">书香浸润校园-好书推荐活动开始了</a></li><span style="white-space:pre">					</span>  <li><a href="#" title="宿舍风采大赛">宿舍风采大赛</a></li>			     </ul>		     </div>		</div>	</div></div><!--经管系网站友情链接板块--><div id="link">    <div id="link_left">友情链接:</div>	<div id="link_right">		<table width="100%" border="0" cellspacing="0" cellpadding="0"><!--表格-->		      <tr align="center" valign="middle">			      <td><a href="#">教学资源网</a></td>			      <td>|</td>			      <td><a href="#">中国大学</a></td>			      <td>|</td>			      <td><a href="#">教育部</a></td>			      <td>|</td>			      <td><a href="#">河北省教育厅</a></td>			      <td>|</td>			      <td><a href="#">中国教育科研网</a></td>			      <td>|</td>			      <td><a href="#">教育网河北主节点</a></td>			      <td>|</td>			      <td><a href="#">慕课网</a></td>			      <td>|</td>			      <td><a href="#">爱课程</a></td>			      <td>|</td>			      <td><a href="#">南方周末</a></td>			      <td>|</td>			      <td><a href="#">经济观察</a></td>			      <td>|</td>			      <td><a href="#">中国企业家</a></td>		       </tr>	    </table>	</div></div><!--经管系网站制作版权信息板块--><div id="copyright">    <div id="copyright_top"><a href="#">版权所有:</a></div>    <div id="copyright_bottom"><a href="#">所在地址:</a></div></div></body></html>
登录后复制

       CSS样式表代码:

/*第一次添加网页总体布局的代码*/* {    margin:0px; 	padding:0px;}body {    padding:0px; 	margin:0px; 	font-size:12px;}#top {	background-image: url(images/head.jpg);	background-repeat: no-repeat;	height: 120px;	width: 998px;	margin-right: auto;	margin-left: auto;}#nav {	background-image: url(images/n_nav_bg.gif);	background-repeat: repeat-x;	height: 37px;	width: 998px;	margin-right: auto;	margin-left: auto;}#adpic {	background-image: url(images/h4.jpg);	background-repeat: no-repeat;	height: 218px;	width: 998px;	margin-right: auto;	margin-left: auto;}#news {	height: 720px;	width: 998px;	margin-right: auto;	margin-left: auto;}#link {	background-image: url(images/n_title_bg.gif);	background-repeat: repeat-x;	height: 40px;	width: 998px;	margin-right: auto;	margin-left: auto;}#copyright {	background-color: #E2E2E2;	height: 80px;	width: 998px;	margin-top: 0px;	margin-right: auto;	margin-left: auto;	border-top-width: 5px;/*设置5像素的上边框*/	border-top-style: solid;	border-top-color: #006042;	margin-bottom: 0px;}#news #news_left {	float: left;	height: 720px;	width: 233px;	margin-right: 5px;}#news #news_mid {	float: left;	height: 720px;	width: 455px;	margin-right: 5px;}#news #news_right {	height: 720px;	width: 300px;	float: left;}#news #news_left #news_left_top {	height: 248px;	width: 233px;}#news #news_left #news_left_mid {	height: 240px;	width: 233px;}#news #news_left #news_left_bottom {	height: 232px;	width: 233px;}#news #news_mid #news_mid_top {	height: 488px;	width: 455px;}#news #news_mid #news_mid_bottom {	height: 232px;	width: 455px;}#news #news_right #news_right_top {	height: 248px;	width: 300px;}#news #news_right #news_right_mid {	height: 240px;	width: 300px;}#news #news_right #news_right_bottom {	height: 232px;	width: 300px;}/*第二次添加导航栏和友情链接栏的代码,下拉菜单我们后面做*/a:link { /*伪类选择页面中全部的超链接标签的未访问的链接状态*/    color:#000000; 	text-decoration:none;}a:visited { /*伪类选择页面中全部的超链接标签的已访问的链接状态*/    color:#000000; 	text-decoration:none;}a:hover{ /*伪类选择页面中全部的超链接标签的鼠标悬停的状态*/	color:#FF0000;	text-decoration:none;	font-weight: bold;	}#nav li {/*后代选择器选择div中行内元素li的设置*/	float: left;	line-height: 37px;	list-style-type:none;	text-align:center;	}#link #link_left {	font-family: "微软雅黑";	font-size: 14px;	line-height: 32px;	font-weight: bold;	color: #009966;	float: left;	height: 32px;	width: 80px;	padding-left: 10px;}#link #link_right {	line-height: 32px;	float: left;	height: 32px;	width: 908px;}#nav a:link{/*后代选择器选择div中行内选择a设置未访问的链接状态*/	color:#FFFFFF;	text-decoration:none;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	width:89px;	height:37px;	display:block;}#nav a:visited{/*后代选择器选择div中行内选择a设置已访问的链接状态*/	color:#FFFFFF;	text-decoration:none;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	width:89px;	height:37px;	display:block;}#nav a:hover{/*后代选择器选择div中行内选择a设置鼠标悬浮在链接的的状态*/	color:#FFFFFF;	text-decoration:none;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	background-color: #009966;	width:89px;	height:37px;	display:block;}/*第三次添加内容标题栏的代码*/img { /*消除图片的默认格式*/    border:none;}.news_left_titlebar {	background-repeat: no-repeat;	height: 31px;	width: 233px;	border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #CCCCCC;	background-color: #FFFFFF;	font-size: 14px;	line-height: 32px;	font-weight: bold;	color: #009966;}.news_left_titlebar img {/*设置图片的格式*/	float: left;	height: 14px;	width: 14px;	margin-top: 9px;	margin-right:5px;}.news_mid_titlebar {	background-image: url(images/n_title_bg.gif);	background-repeat: repeat-x;	height: 32px;	width: 445px;	font-size: 14px;	line-height: 32px;	font-weight: bold;	color: #009966;	padding-left: 10px;}.news_right_titlebar {	background-image: url(images/n_title_bg.gif);	background-repeat: repeat-x;	height: 32px;	width: 290px;	font-size: 14px;	line-height: 32px;	font-weight: bold;	color: #009966;	padding-left: 10px;}#copyright #copyright_top {	height: 20px;	width: 998px;	text-align:center;	line-height:20px;	padding-top:20px;}#copyright #copyright_bottom {	height: 20px;	width: 998px;	text-align:center;	line-height:20px;	padding-bottom:20px;}/*第四次代码左半部分内容的添加*/li {     list-style-type:none;}#news #news_left #news_left_top #news_left_top_content {	height: 210px;	width: 233px;	overflow: hidden;	padding-top:3px;	padding-bottom:3px;}#news #news_left #news_left_top #news_left_top_content li {	float: left;	height: 30px;	width: 233px;    display:block;}#news #news_left #news_left_top #news_left_top_content li a:link{	color:#999999;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	width:233px;	height:30px;	display:block;	text-align:left;	line-height:30px;	vertical-align:middle;}#news #news_left #news_left_top #news_left_top_content li a:visited{	color:#999999;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	width:233px;	height:30px;	display:block;	text-align:left;	line-height:30px;	vertical-align:middle;}#news #news_left #news_left_top #news_left_top_content li a:hover{	color:#FFFFFF;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	background-color: #009966;	width:233px;	height:30px;	display:block;	text-align:left;	line-height:30px;	vertical-align:middle;}#news #news_left #news_left_mid #news_left_mid_content {	height: 196px;	width: 200px;	overflow: hidden;	padding-top:6px;	padding-bottom:6px;	padding-left:13px;	padding-right:20px;}#news #news_left #news_left_mid #news_left_mid_content a:link{	color:#999999;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	width:100px;	height:27px;	display:block;	text-align:center;	line-height:27px;	vertical-align:middle;}#news #news_left #news_left_mid #news_left_mid_content a:visited{	color:#999999;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	width:100px;	height:27px;	display:block;	text-align:center;	line-height:27px;	vertical-align:middle;}#news #news_left #news_left_mid #news_left_mid_content a:hover{	color:#FFFFFF;	font-family: "微软雅黑";	font-size: 14px;	font-weight: bold;	background-color: #009966;	width:100px;	height:27px;	display:block;	text-align:center;	line-height:27px;	vertical-align:middle;}/*第五次代码中间内容一部分的添加*/#news #news_mid #news_mid_top #news_mid_top_content #news_mid_top_content1 {	background-color:#CCCCCC;	height: 256px;	width: 455px;}#news #news_mid #news_mid_top #news_mid_top_content #news_mid_top_content2 {	height: 232px;	width: 455px;}#news #news_mid #news_mid_top #news_mid_top_content #news_mid_top_content2 li {	line-height: 24px;	border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #CCCCCC;}#news #news_mid #news_mid_top #news_mid_top_content #news_mid_top_content2 img {	float: left;	height: 16px;	width: 16px;	margin-top: 5px;}#news #news_mid #news_mid_bottom #news_mid_bottom_content li {	line-height: 24px;	border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #CCCCCC;}#news #news_mid #news_mid_bottom #news_mid_bottom_content img {	float: left;	height: 16px;	width: 16px;	margin-top: 5px;}/*第五次代码右半部分内容的添加*/#news #news_right #news_right_top #news_right_top_content li {	line-height: 23px;	border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #CCCCCC;}#news #news_right #news_right_mid #news_right_mid_content #news_right_mid_content1 {	height: 100px;	width: 300px;	margin-top: 54px;	margin-bottom: 54px;}#news #news_right #news_right_mid #news_right_mid_content li {	line-height: 24px;	border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #CCCCCC;}#news #news_right #news_right_bottom #news_right_bottom_content li {	line-height: 24px;	border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #CCCCCC;}
登录后复制
        运行的效果为:



       点击链接的效果是出现和链接文字一样的title提示,这是HTML超链接标签的title属性实现的。我截图时并没有显

示出右下侧的链接文字。这是截图的原因,只要加上了title属性就可实现!!!



DIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnoseDIV+CSS实操五:经管系网页内容模块内容添加(二)_html/css_WEB-ITnose
HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号