Chinaunix首页 | 论坛 | 博客
  • 博客访问: 322663
  • 博文数量: 69
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 759
  • 用 户 组: 普通用户
  • 注册时间: 2014-09-09 14:15
个人简介

〆 人生就是拼命地奔跑,和华丽的跌倒。 つ

文章分类

全部博文(69)

文章存档

2017年(2)

2016年(16)

2015年(21)

2014年(30)

分类: Html/Css

2016-06-03 09:03:41

sublime编写源代码:

点击(此处)折叠或打开

  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <title>个人中心主页</title>
  6.     
  7.     <link rel="stylesheet" href="../css/gerenzhongxin.css">
  8. </head>
  9. <body>
  10.     <div id="content">
  11.         <div id="head">
  12.             <div class="one_div">
  13.                 <img src="../img/hongqi_CN.jpg" height="18" width="72" alt="国旗_CN">
  14.             </div>
  15.             <div class="lianjie">
  16.                 <img src="../img/home.jpg" height="19" width="20" alt="小房">
  17.                 <a href="#" title="">你好,请登录</a>
  18.                 <a href="#" title="">免费注册</a>
  19.                 <a href="#" title="">帮助中心</a>
  20.                 <a href="#" title="">联系我们</a>
  21.             </div>

  22.             <div class="two_div">
  23.                 <img src="../img/hai_log.jpg" height="39" width="177" alt="">
  24.             </div>

  25.             <div id="middle">
  26.                 <div class="personal">
  27.                     <a href="" title="">个人中心</a>
  28.                 </div>
  29.                 <div class="center">
  30.                     <a href="" title="">personal center</a>
  31.                 </div>

  32.                 <div class="information">
  33.                     <div class="lside">
  34.                         <div class="lside_head">
  35.                             <img src="../img/touxiang.jpg" height="76" width="80" alt="">
  36.                         </div>
  37.                     <div class="shuzi">
  38.                         13426234299
  39.                     </div>
  40.                     <div class="ge_shu">
  41.                         <img src="../img/ge_one.jpg" height="32" width="32" alt="">
  42.                         <img src="../img/ge_two.jpg" height="32" width="32" alt="">
  43.                         <img src="../img/ge_three.jpg" height="32" width="32" alt="">
  44.                         <img src="../img/ge_four.jpg" height="32" width="32" alt="">
  45.                     </div>
  46.                     <div class="hight">
  47.                         <img src="../img/hight.jpg" height="32" width="148" alt="">
  48.                     </div>
  49.                     <div class="ziliao">
  50.                         <img src="../img/blue_ziliao.jpg" height="32" width="200" alt="">
  51.                     </div>
  52.                     <div class="mima">
  53.                         <a href="" title="">修改密码</a>
  54.                     </div>
  55.                     <div class="gray">
  56.                         
  57.                     </div>
  58.                 </div>
  59.                     <div class="rside">
  60.                         <div class="personal_info">
  61.                             <img src="../img/ge_blue.jpg" height="35" width="600" alt="">
  62.                         </div>
  63.                         <div class="input_one">
  64.                             <font color="#cc0000" size="1px">*手机号码输入错误,请重新输入</font><br />
  65.                             <input type="text" name="" value="姓名">
  66.                         </div>
  67.                         <div class="input_two">
  68.                             <input type="text" name="" value="出生日期"><br />
  69.                             <input type="text" name="" value="手机号码"><br />
  70.                             <input type="text" name="" value="电子邮件"><br />
  71.                             <input type="text" name="" value="身份证号"><br />
  72.                             <input type="text" name="" value="职位"><br />
  73.                         </div>

点击(此处)折叠或打开

  1.                         <div class="input_three">
  2.                             <a href="" title=""><img src="../img/blue_tijiao.jpg" height="30" width="180" alt=""></a>
  3.                         </div>
  4.                     </div>
  5.                 </div>

  6.             </div>
  7.             <div id="footer">
  8.                 <div class="four_div">
  9.                     <img src="../img/footer.jpg" height="260" width="1308" alt="">
  10.                 </div>
  11.                 <div class="five_div">
  12.                     <a href="" title="">法律声明 |</a>
  13.                     <a href="" title="">关于我们 |</a>
  14.                     <a href="" title="">联系我们 |</a>
  15.                     <a href="" title="">意见反馈 |</a>
  16.                     <a href="" title="">合作企业 |</a>
  17.                     <a href="" title="">新闻中心 </a>
  18.                 </div>
  19.             </div>
  20.         </div>
  21.     </div>
  22. </body>
  23. </html>
css文件:

点击(此处)折叠或打开

  1. /*
  2. * @Author: IT - Pony
  3. * @Date: 2016-05-21 11:02:46
  4. * @Last Modified by: IT - Pony
  5. * @Last Modified time: 2016-05-30 14:46:51
  6. */

  7. /*utf-8编码集*/
  8. @import charset"utf-8";
  9. *{
  10.     margin: 0;
  11.     padding: 0;
  12. }

  13. #head{
  14.     height: 35px;
  15.     background: #343331;
  16. }

  17. .one_div{
  18.     margin-left: 300px;
  19.     display: inline;
  20. }

  21. .one_div img{
  22.     margin-top: -5px;
  23.     vertical-align: middle;
  24.     display: inline;
  25. }

  26. .lianjie{
  27.     line-height: 35px;
  28.     margin-left: 300px;
  29.     display: inline;
  30. }

  31. .lianjie a{
  32.     text-decoration: none;
  33.     margin-left: 25px;
  34.     color: #fff;
  35.     font-size: 13px;
  36. }

  37. .lianjie img{
  38.     vertical-align: middle;
  39.     margin-right: -25px;
  40.     margin-top: -5px;
  41. }

  42. .two_div{
  43.     height: 96px;
  44.     background: url(../img/two_none.jpg);/*背景图片*/
  45.     margin-top: -1px;/*两块之间有1px距离*/
  46. }

  47. .two_div img{
  48.     float: left;
  49.     margin-top: 25px;
  50.     margin-left: 360px;
  51. }

  52. /*中间div的高*/
  53. #middle{
  54.     height: 580px;
  55. }

  56. .personal{
  57.     margin-top: 20px;
  58.     margin-left: 280px;
  59. }
  60. .personal a{
  61.     text-decoration: none;
  62.     color: #858484;
  63.     font-weight: bold;
  64.     font-size: 30px;
  65. }

  66. .center{
  67.     margin-left: 300px;
  68. }
  69. .center a{
  70.     text-decoration: none;
  71.     color: #888888;
  72.     font-size: 10px;
  73. }

点击(此处)折叠或打开

  1. .information{
  2.     height: 480px;
  3.     /*border: 1px solid green;*/
  4.     margin-top: 20px;
  5. }

  6. .lside{
  7.     height: 480px;
  8.     width: 200px;
  9.     border: 1px solid #dededf;
  10.     float: left;
  11.     margin-left: 250px;
  12. }

  13. .lside_head img{
  14.     margin-top: 25px;
  15.     margin-left: 60px;
  16. }

  17. .ziliao{
  18.     margin-top: 15px;
  19. }

  20. .shuzi{
  21.     text-align: center;
  22.     color: #333333;
  23.     font-size: 16px;
  24.     margin-top: 5px;
  25. }

  26. .mima{
  27.     text-align: center;
  28.     font-size: 16px;
  29.     margin-top: 15px;
  30. }
  31. .mima a{
  32.     text-decoration: none;
  33.     color: #646464;
  34.     font-weight: bold;
  35. }

  36. .gray{
  37.     width: 100px;
  38.     border-bottom: 1px solid #dedede;
  39.     margin-top: 10px;
  40.     margin-left: 50px;
  41. }

  42. .ge_shu{
  43.     text-align: center;
  44.     margin-top: 10px;
  45. }

  46. .hight{
  47.     text-align: center;
  48.     margin-top: 10px;
  49. }
运行结果:


阅读(1291) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~