当前位置:   article > 正文

【个人网站设计】【1】_个人页面设计

个人页面设计

1.我的首页页面设计

  • 步骤

1.创建.index的文件,用软件打开编辑。

2.创建一个div块级标签,其中存放三个子div。

3.第一个块,插入背景大图片在最底层。在顶层上插入自己logo图片设置css圆形展示效果。编辑艺术字“Hi, I’m SunDan.”。添加一个链接按钮,跳转到第二个块。

4.在第二个块中,顶部设置导航条总共10个模块,实现点击时颜色显现变亮效果。文字部分打招呼简介并作出相应的艺术效果。添加返回顶部和和我联系的按钮。最后添加四个css样式学校,并加上超链接可直接导航到该学校首页。

5.最后一div里插入左右两个div分区,左边用于社交平台联系方式,右边用于号码文本地址的直观展示。最后分割线,写署名。

效果图如下:

 

CSS代码如下:

  1. *,
  2. *::before,
  3. *::after {
  4. box-sizing: border-box; }
  5. html {
  6. font-family: sans-serif;
  7. line-height: 1.15;
  8. -webkit-text-size-adjust: 100%;
  9. -ms-text-size-adjust: 100%;
  10. -ms-overflow-style: scrollbar;
  11. -webkit-tap-highlight-color: transparent; }
  12. @-ms-viewport {
  13. width: device-width; }
  14. article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
  15. display: block; }
  16. body {
  17. margin: 0;
  18. font-family: Inconsolata, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  19. font-size: 1rem;
  20. font-weight: 400;
  21. line-height: 1.5;
  22. color: #343a40;
  23. text-align: left;
  24. background-color: #ffffff; }
  25. .container {
  26. width: 100%;
  27. padding-right: 15px;
  28. padding-left: 15px;
  29. margin-right: auto;
  30. margin-left: auto; }
  31. @media (min-width: 576px) {
  32. .container {
  33. max-width: 540px; } }
  34. @media (min-width: 768px) {
  35. .container {
  36. max-width: 720px; } }
  37. @media (min-width: 992px) {
  38. .container {
  39. max-width: 960px; } }
  40. @media (min-width: 1200px) {
  41. .container {
  42. max-width: 1140px; } }
  43. .container-fluid {
  44. width: 100%;
  45. padding-right: 15px;
  46. padding-left: 15px;
  47. margin-right: auto;
  48. margin-left: auto; }
  49. .row {
  50. display: -ms-flexbox;
  51. display: flex;
  52. -ms-flex-wrap: wrap;
  53. flex-wrap: wrap;
  54. margin-right: -15px;
  55. margin-left: -15px; }
  56. .dropdown-divider {
  57. height: 0;
  58. margin: 0.5rem 0;
  59. overflow: hidden;
  60. border-top: 1px solid #f8f9fa; }
  61. .dropdown-item {
  62. display: block;
  63. width: 100%;
  64. padding: 0.25rem 1.5rem;
  65. clear: both;
  66. font-weight: 400;
  67. color: #495057;
  68. text-align: inherit;
  69. white-space: nowrap;
  70. background-color: transparent;
  71. border: 0; }
  72. .dropdown-item:focus, .dropdown-item:hover {
  73. color: #212529;
  74. text-decoration: none;
  75. background-color: #f8f9fa; }
  76. .dropdown-item.active, .dropdown-item:active {
  77. color: #ffffff;
  78. text-decoration: none;
  79. background-color: #000000; }
  80. .dropdown-item.disabled, .dropdown-item:disabled {
  81. color: #868e96;
  82. background-color: transparent; }
  83. .dropdown-menu.show {
  84. display: block; }
  85. .dropdown-header {
  86. display: block;
  87. padding: 0.75rem 1.5rem;
  88. margin-bottom: 0;
  89. font-size: 0.875rem;
  90. color: #ced4da;
  91. white-space: nowrap; }
  92. .list-inline {
  93. padding-left: 0;
  94. list-style: none; }
  95. .list-inline-item {
  96. display: inline-block; }
  97. .list-inline-item:not(:last-child) {
  98. margin-right: 0.5rem; }

 

2.我的简历页面设计

  1. 效果图

  • 步骤

1.插入一个表格<table>,标题为个人简历,确定为15行7列。

2.设置表格<table border="0" align="center" width="100%" cellpadding="2" cellspacing="0">。

3.分别在各个单元格添加文本。其中,“毕业学校”,“起止年月”,“就读学校”,“专业课程”,“工作单位”,“职责”水平合并两个单元格,“照片”,“学习经历”,“工作经历”垂直合并 4个单元格,“求职意向”合并6个单元格。

3、我的爱好页面设计

  1. 效果图

 

  1. 步骤

1.添加一个div块,里面存放3个div。

2.第一个div,通过树形菜单的形式来展现歌单集。

  首先使用项目列表制作一个完整的属性菜单;

  然后使用带参数的函数,通过参数来控制显示或隐藏某个列表。

3.第二个div,利用所学知识完成扑克牌翻转效果。

  ①插入一个包括图片和文字的简单页面结构。

  ②在style样式里设置变换。

首先,将变换的元素(图片和文字)放在四个父容器;

其次,每个父容器包括上面的图片和下面的说明文字;

最后,采用层定位让图片和文字出现叠加效果。

     4.第三个div,添加图片,height="280" width="180",设置播放图片文件夹,设置首张图片。使用循环函数调用循环展示所有书籍图片,每次展示的时间间隔1秒。

CSS代码:

  1. #piclist{ width:760px; height: 220px;margin: 30px auto;}
  2. .picbox{ float: left; position: relative; width: 300px; height: 200px;
  3. margin: 10px; transform-style:preserve-3d; transition:1.5s;}
  4. .picbox:hover{ transform:rotateY(180deg);}
  5. .face{
  6. position: absolute;
  7. width: 300px;
  8. height: 200px;
  9. top: -5px;
  10. left: -12px;
  11. }
  12. .front{ border:2px solid #4b2518;}
  13. .back{ transform:rotateY(180deg); background-color: #4b2518; border:2px solid #fff;}
  14. .back h3{color:white; text-align:center;}
  15. .icon-box {
  16. position: relative;
  17. border-radius: 50%;
  18. display: inline-block;
  19. vertical-align: middle;
  20. background-color: #f8f9fa;
  21. margin: 1rem; }
  22. .icon-box .icon-box-inner {
  23. display: -ms-flexbox;
  24. display: flex;
  25. -ms-flex-direction: row;
  26. flex-direction: row;
  27. -ms-flex-align: center;
  28. align-items: center;
  29. padding: 3.25rem; }
  30. .icon-box .icon-box-inner:hover {
  31. -webkit-transform: translateY(-1px);
  32. transform: translateY(-1px);
  33. transition: all .4s ease-in-out; }
  34. .icon-box .icon-box-inner.small {
  35. padding: 1.25rem; }

5、给我留言页面设计

  1. 效果图

 

  1. 步骤

1.设置好留言板中每个输入框的位置大小。

2.当点击提交按钮时,检验称呼不为空;检验手机号码;检验邮箱正确格式;检验网址正确格式等。

3.获得点击图片随机切换地验证码并进行验证。

  1>在全局定义验证码,定义验证码的长度,定义随机数

2>添加循环操作

3>校验验证码

CSS代码:

  1. #code{
  2. font-family:Arial,宋体;
  3. font-style:italic;
  4. color:green;
  5. border:0;
  6. padding:2px 3px;
  7. letter-spacing:3px;
  8. font-weight:bolder;
  9. }
  10. .form-inline .form-group {
  11. display: -ms-flexbox;
  12. display: flex;
  13. -ms-flex: 0 0 auto;
  14. flex: 0 0 auto;
  15. -ms-flex-flow: row wrap;
  16. flex-flow: row wrap;
  17. -ms-flex-align: center;
  18. align-items: center;
  19. margin-bottom: 0; }
  20. .form-control {
  21. display: block;
  22. width: 100%;
  23. padding: 0.625rem 1.5rem;
  24. font-size: 1rem;
  25. line-height: 1.5;
  26. color: #495057;
  27. background-color: #ffffff;
  28. background-clip: padding-box;
  29. border: 2px solid #f8f9fa;
  30. border-radius: 0.25rem;
  31. transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号