HTML+CSS系列之导学

  • 一:拨云见日
    • 54.position定位
      • relative相对定位
      • absolute决对定位
      • fixed固定定位
      • 定位的下拉菜单
      • 定位实现元素居中
      • 定位实现列表添加修饰
    • 55.CSS添加省略号
    • 56.CSS sprite
    • 57.CSS圆角
    • 58.PC端的布局
    • 练习:博文尚美
    • 练习:游戏网页制作

一:拨云见日

54.position定位

position特性
css position 属性用于决定一个元素在文档中的定位方式。top,bottom,left属性则决定了该元素的最终位置

position取值:
static(默认)静态定位
relative 相对定位
absolute 绝对定位
fixed 固定定位
sticky

relative相对定位

如果没有定位的偏移量,对元素本身没有任何影响
不使元素脱离文档流
不影响其他元素布局
left、top、right、bottom是相对当前的元素自身进行偏移的

absolute决对定位

使元素完全脱离文档流
使内联元素支持宽高(让内联具备块的特性)
使块元素默认宽根据内容决定(让块具备内联的特性)
如果有定位祖先元素相对于定位祖先元素发生偏移,没有定位祖先元素相对于整个文档发生偏移(绝对、相对、固定)

fixed固定定位

使元素完全脱离文档流
使内联元素支持宽高(让内联具备块的特性)
使块元素默认宽根据内容决定(让块具备内联的特性)
相对于整个浏览器窗口进行偏移,不受浏览器滚动条的影响

定位的下拉菜单

定位实现元素居中

定位实现列表添加修饰

55.CSS添加省略号

width:必须有一个固定宽
white-space:nowrap
不让内容折行
overflow:hidden
隐藏溢出内容
text-overfiow:ellipsis
添加省略号

56.CSS sprite

特性:
CSS雪碧也叫做CSS精灵,是一种网页图片应用的处理方式。他允许你将一个页面涉及到的所有零星图片都包含到一张大图中去加载
好处:
1.可以减少图片的质量,网页的图片加载速度快
2.减少图片的请求次数,加快网页的打开

57.CSS圆角

border-radius
给标签添加圆角
例如:


58.PC端的布局

通栏:自适应浏览器的宽度
版心:固定一个宽度,并且让器居中

练习:博文尚美

html:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>博文尚美</title><link rel="stylesheet" href="./css/commom.css"></head>
<body><!-- head --><div id="head" class="container"><div class="logo l"><a href="#"><img src="./images/logo.png" alt="博文尚美"></a></div><ul class="menu"><li><a href="#">HOME</a></li><li><a href="#">ABOUT</a></li><li><a href="#">PROTFOLIO</a></li><li><a href="#">SERVICE</a></li><li><a href="#">NEWS</a></li><li><a href="#">CONTACT</a></li></ul></div><!-- book --><div id="book"><ul class="list"><li style="background-image: url(./images/banner.png);"><a href="#"></a></li></ul><ol class="btn"><li class="lix"></li><li></li><li></li><li></li></ol></div><!-- 服务范围 --><div id="fuwu" class="wrapper"><div id="heng" ><h2>服务范围</h2><p>OUR SERVICES</p></div><div id="tu1"><img src="./images/web1.png" alt=""><h2>1.WEB DESIGN</h2><ul><li class="li2">企业品牌网站设计/手机网站制作</li><li class="li3">动画网站创意设计</li></ul></div><div id="tu2"><img src="./images/graphic1.png" alt=""><h2>2.GRAPHIC DESIGN</h2><ul><li class="li2">标志LOGO设计/产品宣传册设计</li><li class="li3">企业广告/海报设计</li></ul></div><div id="tu3"><img src="./images/e-bussiness1.png" alt=""><h2>3.E-BUSINESS PLAN</h2><ul><li class="li2">淘宝/天猫装修设计及运营推广</li><li class="li3">企业微博、微信营销</li></ul></div><div id="tu4"><img src="./images/mail1.png" alt=""><h2>4.MALBOXAGENTS</h2><ul><li class="li2">腾讯/网易企业邮箱品牌代理</li><li class="li3">个性化邮箱定制开发</li></ul></div></div><!-- 客户案例 --><div id="anli" class="wrapper"><div id="heng"><h2><span>{ 客户案例 }</span></h2><p>With the best prolessional technology, to design the best innovative web site</p></div><div id="kehu"><ul><li><a href="#"><img src="./images/20141121095528549.png" alt=""></a></li><li><a href="#"><img src="./images/20141121095216750.png" alt=""></a></li><li><a href="#"><img src="./images/20141121105856226.png" alt=""></a></li></ul></div><button><span>VIEW MORE</span></button></div><!-- 最新咨询 --><div id="zixun" class="container"><div id="heng" class="xia"><h2>最新咨询</h2><p>TEH LATEST NEWS</p></div><div id="zixuntu"><img src="./images/xs1.png" alt=""></div><div id="jan"><div class="yue"><h2>09</h2><p>Jan</p></div><div class="text"><h2>网站排名进入前三的技巧</h2><p>很多客户经常纳闷为什么自己的网站老是优化不到搜索引擎首页,更不用说进首页前三了。那么优化.......</p></div></div><div id="jan"><div class="yue"><h2>08</h2><p>Jan</p></div><div class="text"><h2>flash网站制作的优缺点</h2><p>虽然HTML5程序语言的出现,大有逐渐代替flash网站制作,但是过于生硬的HTML5动画效果,始终........</p></div></div><div id="jan"><div class="yue"><h2>07</h2><p>Jan</p></div><div class="text"><h2>做个网站多少钱</h2><p>“做个网站多少钱”很多客户打电话过来直接第一句话就抛出来问题。这好比买辆车多少钱,你要是.......</p></div></div><div id="jan"><div class="yue"><h2>06</h2><p>Jan</p></div><div class="text"><h2>哪些网站优化手法属于网站过度优化</h2><p>大部分人都想让自己的网站,一夜之间出现在搜索独占鳌头。但是事实告诉我们罗马不是一..........</p></div></div></div><!-- 底部 --><div id="bottom" class="wrapper"><div id="nei" class="container"><p>Copynight 2006-2014 Bowenshangmei CULture All Rights Reserver</p><ul><li><a href="#" class="wu">Home</a></li><li><a href="#">About</a></li><li><a href="#">portfolio</a></li><li><a href="#">Contact</a></li></ul></div></div></body>
</html>

css:

*{margin: 0;padding: 0;box-sizing: border-box;
}ol,ul,li{list-style: none;
}img{display: block;}a{text-decoration: none;
}body{font-family: Arial;
}.clear:before,.clear:after{content: " ";display: block;clear: both;
}
.l{float: left;}
.r{float: right;}.container{width: 1080px;margin: 0 auto;position: relative;}.wrapper{width: 1352px;margin: 0 auto;}.fluid{width: 100%;
}#head{height: 82px;line-height: 82px;
}#head .logo{margin-top: 19px;
}#head .menu{float: right;font-size: 17px;
}#head .menu li{float: right;margin-left: 50px;
}#head .menu li a{color: #646464;
}#book{position: relative;}#book .list{position: relative;width: 100%;height: 469px;
}#book .list li {position: absolute;left: 0;top: 0;height: 100%;width: 100%;background:center 0 no-repeat;
}#book .btn{width: 100%;position: absolute;bottom: 19px;text-align: center;
}#book .btn li{display: inline-block;margin-right: 11px;width: 12px;height: 12px;border: 3px solid white;border-radius: 50%;cursor: pointer;
}#book .btn .lix{background-color: aliceblue;
}#fuwu{overflow: hidden;height: 408px;
}#heng{margin-top: 60px;text-align: center;/* background-color: pink; */
}#heng h2{height: 20px;line-height: 20px;font-size: 20px;font-weight: normal;color: #363636;background:  no-repeat center 5px;
}#heng p{font-size: 14px;margin-top: 10px;color: #9f9f9f;
}#fuwu #tu1{ float: left;width: 210px;height: 210px;margin-top: 40px;margin-right: 70px;margin-left: 151px;text-align: center;
}
#fuwu #tu1 img{margin: 0 auto;
}
#fuwu #tu1 h2{margin-top: 20px;font-size: 18px;font-weight: bold;line-height: 36px;
}
#fuwu #tu1 .li2{margin-top: 10px;font-size: 14px;color: #6d6d6d;line-height: 22px;
}
#fuwu #tu1 .li3{font-size: 14px;color: #6d6d6d;line-height: 22px;
}#fuwu #tu2{ float: left;width: 210px;height: 210px;margin-right: 70px;margin-top: 40px;text-align: center;
}
#fuwu #tu2 img{margin: 0 auto;
}
#fuwu #tu2 h2{margin-top: 20px;font-size: 18px;font-weight: bold;line-height: 36px;
}
#fuwu #tu2 .li2{margin-top: 10px;font-size: 14px;color: #6d6d6d;line-height: 22px;
}
#fuwu #tu2 .li3{font-size: 14px;color: #6d6d6d;line-height: 22px;
}#fuwu #tu3{ float: left;width: 210px;height: 210px;margin-right: 70px;margin-top: 40px;text-align: center;
}
#fuwu #tu3 img{margin: 0 auto;
}
#fuwu #tu3 h2{margin-top: 20px;font-size: 18px;font-weight: bold;line-height: 36px;
}
#fuwu #tu3 .li2{margin-top: 10px;font-size: 14px;color: #6d6d6d;line-height: 22px;
}
#fuwu #tu3 .li3{font-size: 14px;color: #6d6d6d;line-height: 22px;
}#fuwu #tu4{ float: left;width: 210px;height: 210px;margin-top: 40px;text-align: center;
}
#fuwu #tu4 img{margin: 0 auto;
}
#fuwu #tu4 h2{margin-top: 20px;font-size: 18px;font-weight: bold;line-height: 36px;
}
#fuwu #tu4 .li2{margin-top: 10px;font-size: 14px;color: #6d6d6d;line-height: 22px;
}
#fuwu #tu4 .li3{font-size: 14px;color: #6d6d6d;line-height: 22px;
}#anli{position: relative;overflow: hidden;height: 460px;background: rgb(245, 243, 243);background-color: #f8f8f8;
}#anli #heng h2 span{color: #66c5b4;
}#anli #kehu ul{float: left;margin-top: 38px;margin-left: 167px;
}#anli #kehu li{float: left;margin-right: 20px;
}#anli button{position: absolute;bottom: 50px;left: 590px;width: 176px;height: 37px;border:3px solid #66c5b4;border-radius: 40px;background-color: #66c5b4;cursor: pointer;
}#anli button span{color: white;font-size: 14px;
}#zixun{overflow: hidden;height: 450px;
}#zixun .xia{margin-bottom: 65px;
}#zixun #zixuntu{float: left;}#zixun #jan{float: left;margin-left: 10px;margin-bottom: 16px;width: 400px;height: 90px
}
#zixun #jan .yue{float: left;width: 65px;height: 100%;border-right:2px solid rgb(233, 227, 227) ;
}
#zixun #jan .yue h2{text-align: center;line-height: 60px;font-size: 39px;font-weight: bold;color: #66c5b4;
}
#zixun #jan .yue p{text-align: center;font-size: 18px;line-height: 30px;color:#9f9f9f;
}
#zixun #jan .text{float: left;margin-left: 20px;
}
#zixun #jan .text h2{font-size: 18px;
}
#zixun #jan .text p{margin-top: 20px;width: 300px;height: 40px;font-size: 14px;color: #9f9f9f;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;
}#bottom{height: 50px;background-color: #5FBAB5;
}#bottom #nei{height: 50px;line-height: 50px;
}#bottom #nei p{float: left;font-size: 14px;color: white;
}#bottom #nei ul{float: right;
}#bottom #nei ul li{float: right;text-align: center;
}#bottom #nei ul li a{border-right:1px solid white ;padding: 0 20px;font-size: 10px;color: white;
}
#bottom #nei ul li .wu{border: 0;
}

效果:

练习:游戏网页制作

html:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><link rel="stylesheet" href="./css/common.css"><style>#main{background: url(./img/bg.webp) no-repeat center 0;min-height: 0px;}
</style>
</head>
<body><div id="txtongyong" class="wrapper"><a href="#"><img src="https://game.gtimg.cn/images/js/title/logo.png" alt="" class="txtu1 l"></a><a href="#" ><img src="https://tiem-cdn.qq.com/o2/images/3dbf770c020b971bc4594a8a34528216.jpg" alt="" class="txtu2 l"></a><a href="#" ><img src="" alt="" class="txtu3 l"></a><div class="head_menu right"><div class="head_menu _czshpt l"><a href="#">成长守护平台</a></div><div class="head_menu_top l"><a href="#">腾讯游戏排行榜 </a></div>></div></div><div id="main"><div id="nav"><div id="xiugai" class="wrapper"><div id="nav_logo" class="l"><a href="#" ><img src="https://game.gtimg.cn/images/speed/web202204/logo.png" alt="" class="txtu2 l"></a></div>" <ul class="l xiugai2"><li id="nav_logo_li" class="l"><a href="#"><h2>游戏资料</h2><p>GAME DATA</p></a></li></ul><ul class="l"><li id="nav_logo_li" class="l"><a href="#"><h2>赛事中心</h2><p>RACE</p></a></li></ul><ul class="l"><li id="nav_logo_li" class="l"><a href="#"><h2>活动中心</h2><p>EVETN</p></a></li></ul><ul class="l"><li id="nav_logo_li" class="l"><a href="#"><h2>商城专区</h2><p>ITEM SHOP</p></a></li></ul><ul class="l"><li id="nav_logo_li" class="l"><a href="#"><h2>视频直播</h2><p>VIDEO</p></a></li></ul><ul class="l"><li id="nav_logo_li" class="l"><h2>玩家互动</h2><p>HCOMMUNION</p></li></ul><ul class="l"><li id="nav_logo_li" class="l"><h2>客服中心</h2><p>SERVICE</p></li></ul></div><div id="xiugai3" class="wrapper"><dl class="nav_zl"><dt></dt><dd><a href="#">新手指引</a></dd><dd><a href="#">官方漫画</a></dd><dd><a href="#" class="aqq">高清壁纸</a></dd><dd><a href="#">游戏下载</a></dd><dd><a href="#" class="awx">飞车手游</a></dd></dl><dl  class="nav_ss"><dt></dt><dd><a href="#">谁是车王</a></dd><dd><a href="#" class="awx">SSC</a></dd><dd><a href="#" class="aqq">全国公开赛</a></dd></dl><dl  class="nav_hd"><dt></dt><dd><a href="#" class="aqq">版本专区</a></dd><dd><a href="#" class="awx">活动专区</a></dd><dd><a href="#">CDK兑换</a></dd></dl><dl  class="nav_sc"><dt></dt><dd><a href="#" class="aqq">紫钻专区</a></dd><dd><a href="#">道聚城</a></dd><dd><a href="#" class="awx">点卷充值</a></dd></dl><dl  class="nav_sp"><dt></dt><dd><a href="#">教学视频</a></dd><dd><a href="#" class="aqq">视频中心</a></dd></dl><dl  class="nav_wj"><dt></dt><dd><a href="#">官方论坛</a></dd><dd><a href="#">掌上飞车</a></dd><dd><a href="#" class="awx">官方微信</a></dd><dd><a href="#">官方微博</a></dd></dl><dl  class="nav_kf"><dt></dt><dd><a href="#">在线客服</a></dd><dd><a href="#" class="awx">信用星级</a></dd><dd><a href="#">封号查询</a></dd><dd><a href="#">密码找回</a></dd><dd><a href="#" class="awx">家长监控</a></dd><dd><a href="#">防沉迷</a></dd><dd><a href="#">安全中心</a></dd><dd><a href="#">点亮皇族</a></dd></dl></div><div id="ckxq" class="wrapper"><a href="#"></a></div></div><div id="xz" class="wrapper"><div id="hsxz" class="l"><a href="#"><img src="./img/btn_game.png" alt=""></a></div><p class="p1"><a href="#">下载游戏</a></p><div id="lsxz"><a href="#"><img src="./img/btn1.png" alt=""></a></div><p class="p2"><a href="#">补丁下载</a></p><div id="zsxz"><a href="#"><img src="./img/btn2.png" alt=""></a></div><p class="p3"><a href="#">紫钻专区</a></p><div id="dlu" ><div class="bj"><div class="yuan l"></div><div class="text l"><ul id="dlu_ul" class="l"><li class="ul_hy l">欢迎登录</li><li class="l san"><h3>魅力值</h3><p>0</p></li><li class="l san"><h3>荣誉值</h3><p>0</p></li><li class="l san"><h3>点卷</h3><p>0</p></li></ul></div> </div><div class="batu"><div class="a1 l"><a href="#"></a></div><p class="p1">开通紫钻</p><div class="a2 l"><a href="#"></a></div><p class="p2">视频专区</p><div class="a3 l"><a href="#"></a></div><p class="p3">官方论坛</p><div class="a4 l"><a href="#"></a></div><p class="p4">在线客服</p><div class="a5 l"><a href="#"></a></div><p class="p5">官方二维码</p><div class="a6 l"><a href="#"></a></div><p class="p6">官方漫画</p><div class="a7 l"><a href="#"></a></div><p class="p7">掌上飞车</p><div class="a8 l"><a href="#"></a></div><p class="p8">道具城</p></div><div class="ewm"><ul><li class="tu1 l"><a href="#"><img src="./img/ewm_l.png" alt=""></a></li><li class="text1 l"><p>掌飞全面升级</p><h2>扫码下载</h2></li><li class="tu2 l"><a href="#"><img src="./img/ewm_r.png" alt=""></a></li><li class="text2 l"><p>公众号送豪利</p><h2>扫码关注</h2></li></ul></div></div><!-- 右边部分 --><div id="right" class="r"><div class="top l"><ul class="l ul1"><li class="l li1"><span>活动</span></li><li class="l li2" style="margin-left:22px;"><a href="#">正在进行</a></li><li class="l li2"><a href="#">免费福利</a></li><li class="l li2"><a href="#">商城特惠</a></li><li class="l li2"><a href="#">长期活动</a></li><li class="r li3"><a href="#"><span class="r">更多 +</span></a></li></ul><div class="situ r"><a href="#" class="az"><img src="./img/23f02ff2a2348e1452cee89aec86f0f6.jpeg" alt=""></a><a href="#" class="ay"><img src="./img/7e73f390d218ed63d89d770ce9a1ef62.jpeg" alt=""></a><a href="#" class="az"><img src="./img/a8f4cf451a7605417673efeee50f5bb8.jpeg" alt=""></a><a href="#" class="ay"><img src="./img/c942e6ac7e0323e7cf5680acfe80598c.jpeg" alt=""></a></div></div></div></div></div>
</body>
</html>

css

*{margin: 0;padding: 0;box-sizing: border-box;}
ol,ul{list-style: none;}
img{display: block;}
a{text-decoration: none;}
body{font-family: Arial;}.clear:before,.clear:after{content: " ";display: block;clear: both;}.l{float: left;}
.r{float: right;}.wrapper{   width: 1500px;margin: 0 auto;}#txtongyong{overflow: hidden;height: 50px;}#txtongyong a .txtu1{margin-left: 250px;
}
#txtongyong a .txtu2{margin-left: 30px;
}
#txtongyong a .txtu3{margin-left: 320px;margin-top: 14px;
}#main #nav{position: relative;width: 100%;min-height: 340px;background: url(../img/nav.png) repeat-x;overflow: hidden;
}#main #nav #nav_logo{margin-top: 13px;width: 102px;height: 75px;background: url(../img/logo.png);
}#main #nav .xiugai2{margin-left:35px ;
}#main #nav #nav_logo_li{margin-top: 32px;margin-left: 90px;
}
#main #nav #nav_logo_li h2{font-size: 20px;color: white;font-weight: 0;font-family: '宋体';
}
#main #nav #nav_logo_li p{font-size: 8px;width: 80px;text-align: center;color: #839481;
}/* 导航下的文字 */#main #nav #xiugai3{position: relative;
}#main #nav dl{position: absolute;width: 84px;
}
#main #nav dl a{position: relative;color: #f1ece3;
}
#main #nav dl a:hover{text-decoration: underline;color: rgb(255, 64, 0);
}
#main #nav dl .aqq:after{position: absolute;right: -18px;top: -2px;content: "";display: block;width: 16px;height: 16px;background: url(../img/title_sprite.png) no-repeat -282px -73px;
}
#main #nav dd .awx:after{position: absolute;right: -18px;top: -2px;content: "";display: block;width: 16px;height: 16px;background: url(../img/title_sprite.png) no-repeat -261px -73px;
}
#main #nav dt{height: 90px;
}
#main #nav dd{line-height: 30px;text-align: center;font-size: 14px;
}
#main #nav .nav_zl{left: 222px;
}
#main #nav .nav_ss{left: 400px;
}
#main #nav .nav_hd{left: 575px;
}
#main #nav .nav_sc{left: 750px;
}
#main #nav .nav_sp{left: 929px;
}
#main #nav .nav_wj{left: 1105px;
}
#main #nav .nav_kf{left: 1280px;
}#ckxq{ height: 160px;margin-top: 364px;}#ckxq a{display: block;width: 100%;height: 100%;}#xz{overflow: hidden;min-height: 500px; position: relative;}#xz #hsxz{margin-bottom: 10px;}
#xz .p1{position: absolute;left: 50px;top: 40px;font-size: 50px;font-weight: bold;}
#xz .p1 a{color: #8d5112;}#xz #lsxz img{display: block;position: absolute;left: 316px;
}
#xz .p2{position: absolute;left: 333px;top: 28px;font-size: 18px;font-weight: bold;letter-spacing: 1px;
}
#xz .p2 a{color: white;
}#xz #zsxz img{display: block;position: absolute;left: 316px;top: 80px;
}
#xz .p3{position: absolute;left: 333px;top: 105px;font-size: 18px;font-weight: bold;letter-spacing: 1px;
}
#xz .p3 a{color: white;
}#xz #dlu{margin-top: 160px;width: 431px;min-height: 391px;}#xz #dlu .bj{overflow: hidden;width: 431px;height: 127px;background: url(../img/登录背景框框.png) no-repeat;
}#xz #dlu .bj .yuan{margin-top: 22px;margin-left: 30px;width: 76px;height: 76px;border-radius: 50px;background-color: white;
}#xz #dlu .text #dlu_ul{text-align: center;
}#xz #dlu .text .ul_hy{color: rgb(18, 177, 177);font-size: 20px;margin-left: 12px;line-height: 127px;
}#xz #dlu .text .san{margin-left: 24px;margin-top: 22px;line-height: 40px;color: #839481;font-weight: 0;font-size: 15px;
}#xz #dlu .batu{position: relative;overflow: hidden;width: 431px;height: 163px;}#xz #dlu .batu a{display: block;width: 100%;height: 100%;text-indent: -9999px;overflow: hidden;
}#xz #dlu .batu .a1{margin-top: 25px;margin-left: 64px;width: 34px;height: 24px;background:url(../img/p1.png) no-repeat -18px -3px ;
}
#xz #dlu .batu .a2{margin-top: 25px;margin-left: 64px;width: 26px;height: 21px;background:url(../img/p2.png) no-repeat -19px -5px ;
}
#xz #dlu .batu .a3{margin-top: 25px;margin-left: 64px;width: 26px;height: 24px;background:url(../img/p3.png) no-repeat -20px -3px ;
}
#xz #dlu .batu .a4{margin-top: 25px;margin-left: 64px;width: 25px;height: 25px;background:url(../img/p4.png) no-repeat -20px -3px ;
}
#xz #dlu .batu .a5{margin-top: 50px;margin-left: 64px;width: 34px;height: 24px;background:url(../img/p5.png) no-repeat -18px -3px ;
}
#xz #dlu .batu .a6{margin-top: 50px;margin-left: 64px;width: 26px;height: 21px;background:url(../img/p6.png) no-repeat -19px -5px ;
}
#xz #dlu .batu .a7{margin-top: 50px;margin-left: 64px;width: 26px;height: 24px;background:url(../img/p7.png) no-repeat -20px -3px ;
}
#xz #dlu .batu .a8{margin-top: 50px;margin-left: 64px;width: 25px;height: 25px;background:url(../img/p8.png) no-repeat -20px -3px ;
}#xz #dlu .batu .p1{position: absolute;left: 52px;top: 60px;width: 60px;line-height: 20px;font-size: 14px;
}
#xz #dlu .batu .p2{position: absolute;left: 150px;top: 60px;width: 60px;line-height: 20px;font-size: 14px;
}
#xz #dlu .batu .p3{position: absolute;left: 239px;top: 60px;width: 60px;line-height: 20px;font-size: 14px;
}
#xz #dlu .batu .p4{position: absolute;left: 328px;top: 60px;width: 60px;line-height: 20px;font-size: 14px;
}
#xz #dlu .batu .p5{position: absolute;left: 52px;top: 135px;width: 60px;line-height: 20px;font-size: 14px;
}
#xz #dlu .batu .p6{position: absolute;left: 150px;top: 135px;width: 60px;line-height: 20px;font-size: 14px;
}
#xz #dlu .batu .p7{position: absolute;left: 239px;top: 135px;width: 60px;line-height: 20px;font-size: 14px;
}
#xz #dlu .batu .p8{position: absolute;left: 328px;top: 135px;width: 60px;line-height: 20px;font-size: 14px;
}#xz #dlu .ewm{width: 431px;height: 130px;background-color: #e8eff2;
}#xz #dlu .ewm .tu1{margin-top: 23px;margin-left:10px;
}
#xz #dlu .ewm .text1{margin-top: 40px;margin-left: 10px;
}
#xz #dlu .ewm .text1 p{font-size: 16px;color: #3a94dd;
}
#xz #dlu .ewm .text1 h2{font-size: 24px;color: #9da7c5;
}
#xz #dlu .ewm .tu2{margin-top: 23px;margin-left:12px;
}
#xz #dlu .ewm .text2{margin-top: 40px;margin-left: 10px;
}
#xz #dlu .ewm .text2 p{font-size: 16px;color: #3a94dd;
}
#xz #dlu .ewm .text2 h2{font-size: 24px;color: #9da7c5;
}#xz #right{position: absolute;right: 0;top: 0;width: 1050px;height: 581px;overflow: hidden;
}#xz #right .ul1{width: 1050px;margin-bottom: 10px;
}#xz #right .li1{margin-left: 30px;height: 55px;border-left:3px solid #e98e1f ;font-size: 30px;line-height: 55px;
}
#xz #right .li1 span{margin-left: 10px;
}#xz #right .li2{width: 148px;height: 55px;font-size: 20px;
line-height: 55px;text-align: center;border-bottom:2px solid  #3a94dd;
}
#xz #right .li2 a:hover{color: #3a94dd;font-weight: bold;}
#xz #right .li2 a{color: gray;}#xz #right .li3{width: 328px;height: 55px;font: 16px;line-height: 55px;margin-right: 5px;border-bottom:2px solid  #3a94dd;}
#xz #right .li3 span{color: gray;}#xz #right .situ a{float: left;display: block;margin-bottom: 10px;}
#xz #right .situ .az{margin-left: 135px;}
#xz #right .situ .ay{margin-left: 15px;}
#xz #right .situ a img{}

效果

web前端学习----4相关推荐

  1. Web前端学习有哪些技巧?

    想要学好web前端技术,在学习过程中找到合适的方法和技巧,那么在实际学习过程中会更加的容易和快速掌握知识重点,尤其是对于初学者尤为关键,下面小编就为大家详细的介绍一下Web前端学习有哪些技巧?希望能够 ...

  2. html 表单自动数值,web前端学习技术之对HTML5 智能表单的理解

    原标题:web前端学习技术之对HTML5 智能表单的理解 Html5新增input的form属性,用于指向特定form表单的id,实现input无需放在form标签之中,即可通过表单进行提交. - t ...

  3. Web前端学习路线分享,初学者不要错过!

    在技术岗中,前端开发一直是薪资比较高的岗位. ▲北京前端工程师月均薪20.7K(职友集) 前端技术的更新迭代,导致大部分技术人员跟不上.因此越来越多的人想转型做前端开发了.毕竟想要驰骋职场,想要拿年薪 ...

  4. Web前端学习技巧有哪些?本文给你答案

    随着互联网的快速发展,web前端技术在不断的更新,有着美好前景的web前端岗位引起了很多人的关注,很多人都开始报班学习web前端技术.那么web前端学习技巧有哪些?来看看下面的详细介绍. web前端学 ...

  5. 如何使用jquery_好程序员web前端学习路线分享jQuery学习技巧

    好程序员web前端学习路线分享jQuery学习技巧,jQuery在web前端学习中是一个必不可少的内容,很多小伙伴都在学习这阶段的时候遇到问题,今天我们就来聊一下jQuery,让我们一起来看一看吧! ...

  6. js怎么在一个div中嵌入另一网站_好程序员web前端学习路线分享HTML5常见面试题集锦一...

    好程序员web前端学习路线分享HTML5常见面试题集锦,接下来将会持续为大家分享几篇HTML5常见面试题. 1.布局 左边20% 中间自适应 右边200px 不能用定位 答案:圣杯布局/双飞翼布局或者 ...

  7. web前端学习之ruby标记和rt/rp标记

    ruby 标记定义ruby注释(中文注音或字符).ruby标记与rt标记一同使用. ruby标记由一个或多个字符(需要一个解释/发音)和一个提供该信息的rt 标记组成,还包括可选的rp标记,定义当浏览 ...

  8. html css 前端实现消息提醒数_自学的福音,web前端学习全套视频教程+最新学习思维导图都在这里...

    1.产品经理.这些是负责策划应用程序的一群人.他们会想出很多新鲜的.奇怪的.甚至是不可能实现的应用.一般来说,产品经理都追求丰富的功能. 2.UI设计师.这些人负责应用程序的视觉设计和交互模拟. 3. ...

  9. web前端工程师学习路线指南,完整Web前端学习路线图

    有人说:只要有恒心,铁杵磨成针.这不对,学习重在兴趣,而不在恒心.当你通宵达旦的玩游戏,捧着自己喜爱的名著谈天说地时,不是因为有恒心,而是因为兴趣.只有不感兴趣的东西,才需要恒心的妥协. 所以请抛弃恒 ...

  10. 零基础web前端学习之JavaScript 和css 阻塞

    web前端学习之JavaScript 和css 阻塞,JavaScript 是客户端和服务器端的脚本语言,可以插入HTML 页函中, 并且是目前较热门的Web 开发语言.同时, JavaScript ...

最新文章

  1. Metasploit profiling工具的利用
  2. mssql,mysql,oracle中查询数据库表的比较
  3. php+html 实现加减乘除
  4. 服务器站点解密出错,修改域超级管理员密码后站点复制出错。
  5. CentOS查看 占用 内存 最多的 进程
  6. Java并发编程-volatile关键字介绍
  7. Django笔记01-基础:一个完美主义的web框架
  8. linux安装python和pip3,Linux安装python3.6 和pip
  9. ccs是轮_CCS-船型标准.pdf
  10. Rect 的相关操作
  11. angularjs基础知识1
  12. 翻译: swift5 iOS中的自动布局教程:Auto Layout入门
  13. 2021 小白版,360 行行行转 IT
  14. java导出excel搜索下拉框,SXSSFWorkbook导出Excel并带下拉菜单
  15. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...
  16. 如何开发手机商城app? 商城APP功能
  17. outlook邮箱邮件大小限制_Office Outlook 2010、2013附件大小超过了允许的范围限制三种解决方法图解 – 爱分享...
  18. 1032 挖掘机技术哪家强 Python实现
  19. 华为手机如何升级鸿蒙系统_华为鸿蒙系统怎么升级?升级鸿蒙系统步骤[多图]...
  20. 儿童台灯用白炽灯还是led灯好?盘点眼科医生推荐的儿童LED

热门文章

  1. Mycloud Home offline 排查
  2. Nature子刊:叙事理解过程中默认网络的动态重构
  3. 制作一款STC32G封装为TSSOP20的测试电路板
  4. 实用新型专利挖掘的四个技巧。
  5. 北工大毕业时用的一些网址
  6. 你是怎么对待上帝的?
  7. WPF+WCF一步一步打造音频聊天室(一):概述
  8. 触觉智能分享-低成本高性能的厨电解决方案
  9. 利用PCA(主成分分析法)实现鸢尾花数据集的分类
  10. Failed to decode downloaded font