目录

  • 红米个人案例
  • 学成在线案例

红米个人案例

  1. HTML5的学习及练习

红米个人案例

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>redmi</title></head>
<body>
<div class="father"><img src="data:images/red.jpg" alt=""><h4>小米Redmi红米K30pro 5G手机 (可选变焦版) 天际蓝 变焦版 8G+256G 全网通</h4><div class="son"><span class="one"> ¥3199</span><span class="two"> ¥3599</span></div><div class="zi clearfix"><span class="shu">已售87%</span><div class="niu"><div class="little"></div></div><span class="wen">剩余29件</span></div><div><a href="#">立即抢购</a></div>
</div>
</body>
</html>

学成在线案例

  1. 学成在线的案例
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>学成在线首页</title><link rel="stylesheet" href="style.css">
</head>
<body>
<!--头部区域-->
<div class="header w">
<!--    logo部分--><div class="logo"></div>
<!--        导航栏部分--><div class="nav"><ul><li><a href="#">首页</a></li><li><a href="#">课程</a></li><li><a href="#">职业规划</a></li></ul></div><div class="search"><input class="one" type="text" value="输入关键词" ><input class="two" type="button"></div>
<!--    用户模块--><div class="user"><img src="data:images/user.png" style="vertical-align: middle">qq-lilei</div>
</div>
<!--banner区域-->
<div class="banner"><div class="w"><div class="subnav"><ul><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li><li><a href="#">前端开发 <span>&gt;</span> </a></li></ul></div>
<!--        课程表模块--><div class="course"><h2 class="biao">我的课程表</h2><div class="bd"><ul><li><h4>继续学习  程序语言设计</h4><p>正在学习-适用对象</p></li><li><h4>继续学习  程序语言设计</h4><p>正在学习-适用对象</p></li><li><h4>继续学习  程序语言设计</h4><p>正在学习-适用对象</p></li></ul><a href="#" class="more">全部课程</a></div></div></div>
</div>
<!--精品推荐区域-->
<div class="goods w"><h3>精品推荐</h3><ul><li><a href="#">jQuery</a></li><li><a href="#">jQuery</a></li><li><a href="#">jQuery</a></li><li><a href="#">jQuery</a></li><li><a href="#">jQuery</a></li></ul><a href="#" class="niu">修改兴趣</a>
</div>
<!--box核心区域-->
<div class="box w">
<div class="box-hd"><h3>精品推荐</h3><a href="#">查看全部</a>
</div><div class="box-bd"><ul class="clearfix"><li><em><img src="data:images/hot.png" alt=""></em><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li><li><img src="data:images/pic.png" alt=""><h4>Think PHP 5.0 博客系统实战项目演练</h4><div class="infor"><span>高级</span>• 1125人在学习</div></li></ul></div>
</div>
<!--footer区域-->
<div class="footer"><div class="w"><div class="copyright"><img src="data:images/logo2.png"><p>学成在线致力于普及中国最好的教育它与中国一流大学和机构合作提供在线课程。<br>© 2017年XTCG Inc.保留所有权利。-沪ICP备15025210号</p><a href="#" class="app">下载APP</a></div><div class="links"><dl><dt>关于学成网</dt><dd><a href="#">关于</a></dd><dd><a href="#">管理团队</a></dd><dd><a href="#">工作机会</a></dd><dd><a href="#">客户服务</a></dd><dd><a href="#">帮助</a></dd></dl><dl><dt>关于学成网</dt><dd><a href="#">关于</a></dd><dd><a href="#">管理团队</a></dd><dd><a href="#">工作机会</a></dd><dd><a href="#">客户服务</a></dd><dd><a href="#">帮助</a></dd></dl><dl><dt>关于学成网</dt><dd><a href="#">关于</a></dd><dd><a href="#">管理团队</a></dd><dd><a href="#">工作机会</a></dd><dd><a href="#">客户服务</a></dd><dd><a href="#">帮助</a></dd></dl></div></div>
</div>
</body>
</html>
  1. 学成在线案例
 4. {margin: 0;padding: 0;
}
.w {width: 1200px;margin: 0 auto;
}
.clearfix:before,.clearfix:after {content:"";display:table;
}
.clearfix:after {clear:both;
}
.clearfix {*zoom:1;
}
body {background-color: #f3f5f7;
}
a {text-decoration: none;
}
.header {height: 42px;/*注意此地方会重叠w中的margin*/margin: 30px auto;
}
.logo {float: left;width: 198px;height: 42px;background-image: url(images/logo.png);
}
.nav {float: left;font-size: 18px;margin-left: 60px;
}
.nav ul li {float: left;margin: 0 15px;
}
.nav li a {display: block;height: 42px;text-decoration: none;color: black;line-height: 42px;padding: 0 10px;
}
li {list-style: none;
}
.nav li a:hover {border-bottom:2px solid skyblue;color: #00a4ff;
}
.search {width: 421px;height: 42px;float: left;line-height: 42px;margin-left: 70px;
}
.search .one {float: left;width: 345px;height: 40px;border: 1px solid skyblue;border-right: 0;color: #bfbfbf;font-size: 16px;padding-left: 15px;
}
.search .two {float: left;width: 50px;height: 42px;/*button默认有一个边框需要我们手动去掉*/border: 0;background-image: url(images/tuceng.png);
}
.user {float: right;height: 42px;line-height: 42px;margin-right: 30px;font-size: 14px;color: #666666;
}
.banner {height: 421px;background-color: #1c036c;
}
.banner .w {height: 421px;background-image: url(images/banner.png);background-position: top center;
}
.banner .subnav {float: left;width: 190px;height: 421px;background-color: rgba(0,0,0,.3);
}
.subnav ul li {height: 45px;line-height: 45px;padding: 0 20px;
}
.subnav ul li a {text-decoration: none;font-size: 14px;color: white;
}
.subnav ul li a span {float: right;
}
.subnav ul li a:hover {color: #00a4ff;
}
.course {float: right;width: 230px;height: 300px;background-color: #fff;/*浮动的盒子不会有外边距合并的问题*/margin-top: 50px;
}
.course .biao {height: 48px;text-align: center;line-height: 48px;background-color: #9bceea;color: white;
}
.course .bd {padding:0 20px;
}
.bd ul li {border-bottom: 1px solid #ccc;padding: 12px 0;
}
.course .bd ul li h4 {font-size: 16px;color: #4e4e4e;
}
.bd ul li p {font-size: 12px;color: #a5a5a5;
}
.bd .more{display: block;text-decoration: none;height: 38px;line-height: 38px;border: 1px solid #00a4ff;text-align: center;margin-top: 5px;color: #00a4ff;font-size: 16px;font-weight: 700;
}
.goods {height: 60px;background-color: white;box-shadow: 0 2px 3px 3px rgba(0,0,0,.1);margin-top: 10px;/*行高会继承,会继承给h3 ul a*/line-height: 60px;
}
.goods a {float: right;text-decoration: none;
}
.goods h3 {font-size: 20px;margin-left: 30px;float: left;color: #00a4ff;
}
.goods ul {padding-left: 30px;float: left;
}
.goods li {float: left;
}
.goods ul li a {font-size: 16px;color: #050505;padding: 0 30px;border-left: 1px solid #ccc;
}
.goods .niu {margin-right: 30px;color: #00a4ff;
}
.box {margin-top: 30px;
}
.box-hd {height: 45px;
}
.box h3 {font-size: 20px;color: #494949;float: left;
}
.box .box-hd a {font-size: 12px;color: #a5a5a5;float: right;margin-top: 10px;margin-right: 30px;
}
/*把li的父亲ul修改的足够宽一行能装开五个盒子就不会换行了*/
.box-bd ul {width: 1225px;
}
.box-bd ul li {/*子绝父相*/position: relative;/*overflow: hidden;*/float: left;width: 228px;height: 270px;background-color: #fff;margin-right: 15px;margin-bottom: 15px;
}
.box-bd ul li >img {width: 100%;
}
.box-bd ul li h4 {margin: 20px 20px 20px 25px;color: #050505;font-size: 14px;font-weight: 400;
}
.box-bd ul li em {position: absolute;top: 4px;right: -4px;
}
.box-bd ul li .infor {margin: 0 20px 0 25px;font-size: 12px;color: #999;
}
.box-bd ul li .infor span {color: orange;
}
.footer {height: 415px;background-color: #fff;
}
.footer .w {/*会有外边距合并问题*//*margin-top: 35px;*/padding-top: 35px;
}
.footer .copyright {float: left;
}
.footer .copyright p {font-size: 12px;color: #666;margin-top: 15px;margin-bottom: 20px;
}
.footer .copyright .app {display: block;width: 118px;height: 35px;text-align: center;line-height: 35px;font-size: 20px;color: #00a4ff;border: 1px solid #00a4ff;
}
.footer .links {float: right;
}
.footer .links dl {float: right;margin-left: 100px;
}
.footer .links dl dt {font-size: 16px;color: #333;margin-bottom: 5px;
}
.footer .links dl dd a {font-size: 12px;color: #333;
}
  1. 红米案例
 .clearfix:after {content: "";display: block;height: 0;clear: both;visibility: hidden;}.clearfix {/* IE6、7 专有 */*zoom: 1;}body {background-color: beige;}.father {width: 300px;height: 550px;background-color: white;margin: 100px auto;}.father img {width: 100%;height: 350px;}.father .son .one {font-size: 20px;font-weight: 700;color: red;}.son .two {font-size: 15px;color: gray;text-decoration: line-through;}.father .niu {position: absolute;top: 9px;left: 25px;width: 160px;height: 8px;border: 1px solid red;border-radius: 4px;margin-left: 40px;}.niu .little {width: 87%;height: 100%;background-color: red;transition: width 1s;}.little:hover {width: 100%;}.zi {position: relative;height: 30px ;}.zi .shu{position: absolute;top: 7px;left: 5px;font-size: 12px;}.zi .wen{position: absolute;top: 6px;right: 15px;font-size: 12px;}a {display: block;width: 300px;height: 55px ;text-decoration: none;color: #fff;background-color: red;font-size: 20px;text-align: center;line-height: 55px;}

使用html和css进行红米案例、学成在线开发相关推荐

  1. 黑马程序员前端-CSS练手之学成在线页面制作

    前端学习笔记教程不定期更新中,传送门: 前端HTML第一天:什么是网页?什么是HTML?网页怎么形成? 黑马程序员前端-CSS入门总结 黑马程序员前端-CSS之emmet语法 黑马程序员前端-CSS的 ...

  2. CSS学习笔记之学成在线项目(下) 3.3

    1.1 机器学习工程师模块 本人思路:定义一个content大盒子,里面包含top和ugui上下两个小盒子,小盒子里的布局以及样式与前面的模块是一致的,这里不再赘述,可直接套用style样式. 结构代 ...

  3. 【HTML、CSS】利用HTML、CSS实现静态页面——学成在线

    学成在线头部 精品推荐模块 侧边导航&&编程入门模块 数据分析师模块 机器学习工程师&&前端开发工程师模块 页面底部模块 代码地址:GitHub - wmc145956 ...

  4. web前端入门学习 css(5)(浮动)(ps切图)(css属性书写顺序)(学成在线网站案例)

    文章目录 传统网页布局的三种方式 标准流(普通流.文档流) 浮动(为什么需要浮动?) 浮动特性 浮动元素会脱离标准流,可以与普通流的元素相重叠 如果多个盒子都设置了浮动,则它们会按照属性值一行内显示并 ...

  5. CSS浮动/常见网页布局/清除浮动/学成在线案例

    CSS 04 1. 浮动(float) 1.1 传统网页布局的三种方式 网页布局的本质--用 CSS 来摆放盒子. 把盒子摆放到相应位置. CSS 提供了三种传统布局方式(简单说,就是盒子如何进行排列 ...

  6. css实操:学成网综合案例

    css实操:学成网综合案例 页面效果: 易错点很多,需要注意的地方都有注释.常看! HBuilder X > css > 学成网首页.html <!DOCTYPE html> ...

  7. CSS浮动、PS切图、学成在线案例前期准备

    传统网页布局的三种方式 网页布局的本质--用CSS来摆放盒子,把盒子摆放到相应位置 CSS提供了三种传统布局方式(简单说,就是盒子如何进行排列顺序): 普通流(标准流) 浮动 定位 标准流 所谓标准流 ...

  8. 学成在线案例——黑马程序员pink老师\思路讲解\完整源代码

    本文为跟随B站黑马程序员pink老师学习CSS时所写,文章讲解了学成在线首页的制作思路,并贴出了源代码,作为学习笔记分享给大家 如有错误,欢迎指出.如有侵权,联系删除 文章目录 1. 案例准备工作 2 ...

  9. 综合案例之学成在线首页

    综合案例之学成在线首页 1 准备素材和工具 2 案例准备工作 3 CSS属性书写属性 4 页面布局整体思路 5 确定版心 6 头部制作 7 banner制作 8 精品推荐小模块 9 精品推荐大模块 1 ...

最新文章

  1. android java.lang.IllegalArgumentException: Comparison method violates its general contract! 问题
  2. 通过mtd读写flash_关于如何在kernel起来之后通过直接dd读写nand flash分区来更新zImage的mtd问题...
  3. mysql如何存储表情,如何让mysql支持存储表情
  4. 2018 F40中国青年投资人
  5. Android第十五课 Jni自带的iconv库不支持GBK转码
  6. python3 urllib代理_Python3中使用urllib的方法详解(header,代理,超时,认证,异常处理)
  7. matlab treeview,treeview控件
  8. 找到字符串中所有字母异位词—leetcode438
  9. this super java_java中 this 和super的用法
  10. 央视曝光紫砂锅名单_大家看今天中午《每周质量报告》没,美的牌 紫砂锅含有剧毒。家里有这牌子...
  11. 静态类 c# 1615139615
  12. TransFM:基于因子分解机的序列推荐方法
  13. BGP多出口多宿主实验
  14. GNOME 3.20 两大新特性说明
  15. (转)全球3.4万亿美元ETF蓝海,我们还在末尾 且听全球第二大团队讲真经
  16. C语言中的函数(详解)
  17. Allegro添加相对传输延迟的等长规则设置
  18. 第二章---《实时语音处理实践指南》发音机理与器件学习笔记
  19. 电脑插入耳机后没反应怎么办?
  20. 菜鸟的草缸 篇四:菜鸟的草缸:二氧化碳CO2

热门文章

  1. 日光観光は東照宮だけじゃない!日光観光のおすすめスポット29選
  2. html动画之制作烟花效果,JavaScript实现烟花绽放动画效果
  3. 【案例】js 计算日期之间的天数
  4. mysql mha 安装_MySQL高可用方案 MHA之一MHA安装
  5. OpenTX与EdgeTX---kalrry
  6. 中国历史上六位世界首富的没落
  7. nginx之ReWrite语法
  8. Android RecyclerView实现图片瀑布流
  9. 读取 DTC 信息服务 (0x19) – UDS 协议
  10. 获取服务器上图片的大小KB