预约科室左边那块用表格怎样设置样式
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>项目作业</title>
<link rel="stylesheet" type="text/css" href="js/index.css">
</head>
<body>
<div class="top">
<div class="wrap">
<div class="top-1">
<img src="img/icon-call.png">
<span>010-114/116114电话预约</span>
</div>
<div class="top-2">
<span>欢迎来到城市预约挂号统一平台 请
<a href="#">登录</a>
<a href="#">注册</a>
<a href="#">帮助中心</a>
</span>
</div>
</div>
</div>
<div class="header">
<div class="header-1">
<img src="img/logo.png">
<div class="header-2 ui-header">
<div class="ui-header-selected">医院</div>
<div class="ui-header-select-list">
<a href="#1">科室</a>
<a href="#1">疾病</a>
<a href="#1">医院</a>
</div>
<input type="text" name="header-content" class="ui-search-input" placeholder="请输入搜索内容">
<a href="#" class="ui-header-submit"> </a>
</div>
</div>
</div>
<div class="nav">
<div class="nav-1">
<a href="#" class="left">首页</a>
<a href="#" class="left">按医院挂号</a>
<a href="#" class="left">按科室挂号</a>
<a href="#" class="left">按疾病挂号</a>
<a href="#" class="left">最新公告</a>
<a href="#" class="right">社会知名医院</a>
</div>
</div>
<!-- 简介intro -->
<div class="content">
<div class="content-1">
<div class="content-2">
<span class="a">北京协和医院</span>
<span class="b">关注医院</span>
<span class="c">
<a href="#">等级:</a>三级甲等
<a href="#">区域:</a>东城区
<a href="#">分类:</a>中国医科院附属医院
</span>
</div>
<div class="content-3">
<div class="content-left">
<img src="img/hospital-1.jpg">
</div>
<div class="center">
<p class="icon icon1">[东院]北京市东城区帅府园一号[西院]北京市西城区大木仓胡同41号</p>
<p class="icon icon2">http//:www.pumch.cn/</p>
<p class="icon icon3">东院咨询台:010-692124124;西院咨询台:010-315351616</p>
<p class="icon icon4">东院:106,108,110,111,116,684,685到东单路口北41,104快814到东城区南门口;1,52,728,802到东单路口西;20,25,37,39,到东单路口东;<br/>
103,130,314,124到新东安市场;地铁1,5号线到东单。西院:68到辟才胡同东口;更多乘车路线详见须知</p>
</div>
<div class="content-right">
<img src="img/map-1.png">
</div>
</div>
</div>
</div>
<div class="footer">
<div class="footer-1">
<div class="footer-nav">
<a href="#" class="footer-nav1 nav-2">预约挂号</a>
<a href="#" class="footer-nav1">医院介绍</a>
<a href="#" class="footer-nav1">预约须知</a>
<a href="#" class="footer-nav1">停诊信息</a>
<a href="#" class="footer-nav1">查询取消</a>
</div>
<div class="footer-left">
<table>
<div class="t">开放预约科室</div>
<tr>
<td class="z">2013</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td class="z">专科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td class="z">内科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td class="z">内科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
<tr>
<td></td>
<td>特殊门诊科</td>
<td>特殊门诊科</td>
</tr>
</table>
</div>
<div class="footer-right">
</div>
</div>
</div>
</body>
</html>
*{
padding: 0;
margin:0;
}
a{
text-decoration: none;
color: blue;
}
.top{
background: #f5f5f5;
height: 40px;
}
.wrap{
width: 1000px;
margin: 0 auto;
}
.top-1{
float: left;
line-height: 40px;
}
.top-2{
float: right;
line-height: 40px;
}
.header{
width: 1000px;
margin:0 auto;
position: relative;
}
.header-1{
width: 400px;
height: 75px;
}
.header-1 img{
width: 100%;
height: 100%;
}
.header-2{
width: 326px;
height: 40px;
position: absolute;
top:20px;
right: 0;
background: url(../img/ui-search.jpg) center no-repeat;
}
.ui-header-selected{
width:78px;
height: 38px;
line-height: 38px;
position: absolute;
left: 0;
top: 0;
text-indent: 14px;/*首行缩进*/
}
.ui-header-select-list{
display: none;
position: absolute;
width: 67px;
line-height: 24px;
background-color: #f5f5f5;
left: 2px;
top: 36px;
z-index: 2;
}
.ui-header-select-list a{
display: block;
text-align: center;
color:#A5a2a2;
}
.ui-search-input{
width:212px;
height: 32px;
position: absolute;
left:69px;
top:2px;
}
.nav{
background:#60bff2;
}
.nav-1{
width:1000px;
height:40px;
line-height: 40px;
margin:0 auto;
}
.nav-1 a{
color: #fff;
}
.left{
padding-left: 50px;
}
.right{
float: right;
}
.content{
margin-top: 20px;
}
.content-1{
width:1000px;
margin:0 auto;
background: #f7f7f7;
}
.content-2 {
line-height: 60px;
border-bottom: 1px solid #ccc;
margin: 0 20px;
}
.content-2 .a{
font-size: 20px;
}
.content-2 .b{
font-size: 15px;
color: orange;
}
.content-2 .c{
float: right;
}
.content-3{
width: 1000px;
height: auto;
margin:0 auto;
overflow: hidden;
}
.content-left{
width: 200px;
margin-right: 30px;
margin: 15px 20px;
float: left;
}
.content-left img{
width: 100%;
}
.center{
width: 440px;
height: 210px;
float: left;
margin-top: 15px;
margin-left: 50px;
font-size: 10px;
line-height: 30px;
}
.content-right{
float: right;
margin-top: 15px;
margin-right: 20px;
}
.content-right img{
width: 100%;
height: 180px;
}
.icon{
position: relative;
padding-left: 28px;
}
.icon:before{
content: ' ';
display: block;
width: 20px;
height: 20px;
background: url(../img/icon-web.png) no-repeat;
position: absolute;
left: 0;
top: 10px;
}
.icon2:before{
top: 7px;
left: 0px;
background-position: 0 -20px;
}
.icon3:before{
top: 7px;
left: 0px;
background-position: 0 -43px;
}
.icon4:before{
top: 7px;
left: 0px;
background-position: 0 -62px;
}
.footer{
margin-top: 20px;
}
.footer-1{
width: 1000px;
margin: 0 auto;
border-bottom: 1px solid #60bff2;
}
.footer-nav{
height: 50px;
line-height: 50px;
}
.footer-nav1{
display: block;
width: 112px;
height: 50px;
text-align: center;
float: left;
color: #60bff2;
}
.nav-2{
background: #60bff2;
color: #fff;
}
.footer-left{
width:600px;
height: 300px;
float: left;
margin-top: 20px;
}
.t{
background: #ccc;
width: 600px;
height: 40px;
line-height: 40px;
}
table .z{
background: orange;
text-align: center;
}
.footer-right{
width:380px;
height: 300px;
background: orange;
float: right;
margin-top: 20px;
}0
收起
正在回答 回答被采纳积分+1
2回答
好帮手慕夭夭
2018-11-08 16:54:42
你好同学 ,是如下排班表吗 ?

这一块建议同学调整结构 , 使用dl布局会简单一些 .思路如下:
如下整体放在一个大的div下面 , div中放四个dl标签分别放四个不同的科室

每个dl中有一个标题和一个列表 ,结构如下:

css样式:
整体dl可以设置一个背景色background-color: #f2fbff; ,而右边的dd列表可以设置一个 background-color: #fff;
给dt和dd适当的宽高 , 具体结合效果图设置 , 一些偏差是可以存在的
dt和dd可以使用绝对定位 ,使其在一行显示 . 注意给dl设置相对定位 ,让里面的元素参照其定位.
希望能够帮到你 , 祝学习愉快 ! 望采纳
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程

恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星