经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » HTML/CSS » HTML5 » 查看文章
视频网站大杂烩--HTML+CSS练手项目1【Frameset】
来源:cnblogs  作者:C_XingM  时间:2019/7/8 8:49:02  对本文有异议

【本文为原创,转载请注明出处】

技术【CSS+HTML】   布局【Frameset】

------------------------------------------------------------------------------------------------------------

步骤1  Frameset 布局

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>视频网站大杂烩</title>
  6. <link rel="stylesheet" href="">
  7. </head>
  8. <frameset cols="200px ,*">
  9. <frame src="html/list.html" noresize="noresize"/>
  10. <frame name="video" src="html/video.html" noresize="noresize"/>
  11. </frameset>
  12. </html>
index.html
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>video</title>
  6. <link rel="stylesheet" href="">
  7. </head>
  8. <frameset rows="33.33%,33.33%,*">
  9. <frameset cols="33.33%,33.33%,*">
  10. <frame src="http://www.360kan.com/"/>
  11. <frame src="http://www.iqiyi.com/"/>
  12. <frame src="https://v.qq.com/"/>
  13. </frameset>
  14. <frameset cols="33.33%,33.33%,*">
  15. <frame src="https://www.mgtv.com/"/>
  16. <frame src="https://tv.sohu.com/"/>
  17. <frame src="https://www.bilibili.com/"/>
  18. </frameset>
  19. <frameset cols="33.33%,33.33%,*">
  20. <frame src="http://www.73mao.com/"/>
  21. <frame src="http://www.hanju.cc/"/>
  22. <frame src="https://www.dadatutu.com/"/>
  23. </frameset>
  24. </frameset>
  25. </html>
list.html
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>video</title>
  6. </head>
  7. <frameset rows="33.33%,33.33%,*">
  8. <frameset cols="33.33%,33.33%,*">
  9. <frame src="http://www.360kan.com/"/>
  10. <frame src="http://www.iqiyi.com/"/>
  11. <frame src="https://v.qq.com/"/>
  12. </frameset>
  13. <frameset cols="33.33%,33.33%,*">
  14. <frame src="https://www.mgtv.com/"/>
  15. <frame src="https://tv.sohu.com/"/>
  16. <frame src="https://www.bilibili.com/"/>
  17. </frameset>
  18. <frameset cols="33.33%,33.33%,*">
  19. <frame src="http://www.73mao.com/"/>
  20. <frame src="http://www.hanju.cc/"/>
  21. <frame src="https://www.dadatutu.com/"/>
  22. </frameset>
  23. </frameset>
  24. </html>
video.html

步骤2 CSS样式【大小、位置、颜色、图片】

css要求:左边导航栏列表居中,颜色,字体大小

  1. *{
  2. margin:0px;
  3. padding: 0px;
  4. }
  5. body{
  6. background-color: #f1f1f1;
  7. }
  8. ul{
  9. /* 消除有序列表的项目符号 list-style-type:none; */
  10. list-style-type:none;
  11. }
  12. li{
  13. width: 100%;
  14. height: 40px;
  15. line-height:40px;;
  16. }
  17. li a{
  18. text-decoration: none;
  19. display: block;
  20. text-align: center;
  21. font-size: 18px;
  22. font-family: "Book Antiqua";
  23. color: #000;
  24. }
  25. li a:hover{
  26. background-color: #555;
  27. color: #FFFFFF;
  28. }
  29. .list-homepage{
  30. background-color: #4CAF50;
  31. color: white;
  32. }
  33. /* 消除有序列表的项目符号 list-style-type:none; */
  34. /*<li>里面的<a>内容居中:display: block; text-align: center;*/
list.css

步骤4 知识点整理

1.消除有序列表的项目符号   list-style-type:none; 

2.<li>里面的<a>内容居中:display: block; text-align: center;

3.垂直导航栏【未整理

4.调用网页适应frame大小  【未整理

------------------------------------------------------------------------------------------------------------

【完整代码链接:还未上传,可私聊我】

【不足之处望指出,一起努力学习前端】

原文链接:http://www.cnblogs.com/Caixingmin/p/11144668.html

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号