Web前端开发 打卡第一天

实战样例

代码整体框架

整体框架代码

<!DOCTYPE html>
<html lang="en">
  <head>
  </head>
  <body>
	  <div class="top">
		<div class="left_top">
			<div class="left_top_list"></div>
			<div class="left_top_list_choice"></div>
			<div class="left_top_list_img"></div>
		</div>
		
		<div class="right_top">
			<div class="right_top_list"></div>
			<div class="right_top_img"></div>
		</div>
	  </div>
  </body>
</html>

左边框架搭建

 

<!DOCTYPE html>
<html lang="en">
  <head>
	  <style>
		* {
			padding: 0;
			margin: 0;
		}  
		.top {
			width: 100%;
			height: 800px;
		}
		.top .left_top {
			width: 872px;
			height: 800px;
			
		}
		
		.top .left_top .left_top_list  {
			width: 872px;
			height: 32px;
			background: #f5f5f5;
		}
		.top .left_top .left_top_list  a{ /* 属于文本就是属于超链接 */
			text-decoration: none;
			color: #999;
			width: 288px;
			color: #999;/* 字体颜色 */
			line-height:32px;
			display: block;
			float: left;
			text-align: center;
						
			
		}
		.top .left_top .left_top_list .split {
			width: 2px;
			height: 20px;
			overflow: hidden;
			float: left;
			background: #e1e1e1;
			display: inline-block;
			margin: 5px 0 0px;
		}
			
		
	  </style>
  </head>
  <body>
	  <div class="top">
		<div class="left_top">
			<!-- 三个部分 -->
			<div class="left_top_list">
				<a href="JavaScript">精品栏目</a><span class="split"></span>
				<a href="JavaScript">赛事精英</a><span class="split"></span>
				<a href="JavaScript">英雄攻略</a>
			</div>
			<div class="left_top_list_choice"></div>
			<div class="left_top_list_img"></div>
		</div>
		
		<div class="right_top">
			<div class="right_top_list"></div>
			<div class="right_top_img"></div>
		</div>
	  </div>
  </body>
</html>

实现的效果

 学到的知识

1.空格之间的竖线 split

2.超链接取消下划线  text_decoration:none;

3.把超链接块级化  display:block;  float:left;

暂时没有解决的

1.选中超链接 下标颜色变成黄色

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值