个人主页
2017-06-28 18:38
176 查看
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <style> body { margin: 0; } header { background-color: palegreen; width: 100%; /*bordr:2px red solid;*/ position: fixed; box-shadow: 2px 5px 5px; } header section{ background-image: url("logo.png"); width: 400px; height: 100px; background-size: 400px 100px; float: left; margin-top: 35px; margin-left: 20px; } header div { margin-top: 70px; float: right; } .one { margin-right: 30px; font-size: 25px; text-decoration-line: none; } div img { width: 100%; height: 600px; margin-top: 135px; } .aa { height: 800px; margin: 0px; } main { margin-left: 100px; margin-right: 100px; } .div1 { width: 10px; height: 30px; background-color: red; float: left; } .div0 { margin-bottom: 10px; font-size: 25px; /*font-size-adjust: center;*/ margin-top: 30px; } #foot { display: block; border-top: solid 2px red; /*text-justify: center;*/ margin-top: 50px; padding:30px; text-align: center; } /*.foot1 { display: block; margin-left: 20px; float: left; margin-right: 20px; }*/ #class{ /*width:100%;*/ height:600px; background-image: url(classmates.jpg); background-size: 100%; border:solid 1px transparent; } #class1{ width:300px; height:300px; background-image: url(lry.jpg); background-size: 100% 100%; border-bottom-left-radius: 150px; border-bottom-right-radius: 150px; border-top-left-radius: 150px; border-top-right-radius: 150px; margin-top:150px; margin-left:300px; /*transform: translateX(300px) translateY(150px) ;*/ } </style> <body> <header> <section></section> <div> <a href="#tip0" class="one" >我的主页</a> <a href="#tip1" class="one">我的同学</a> <a href=" #tip2" class="one" >我的家乡</a> <a href="" class="one">我的照片</a> <a href="" class="one">关于我</a> </div> </header> <div> <img src="header.jpg" alt=""> </div> <main> <div> <div>njfksdahnjkegndkrfgmnklsgjnls</div> <div class="div0"> <div class="div1"> </div> <div id="tip0">HTML5</div> </div> <img src="html5.jpg" alt="" class="aa"> <div>njfksdahnjkegndkrfgmnklsgjnls</div> </div> <div> <div class="div0"> <div class="div1"> </div> <div id="tip1">我的主页</div> </div> <div id="class"> <!--<img src="classmates.jpg" alt="" class="aa">--> <div id="class1"></div> </div> <div>njfksdahnjkegndkrfgmnklsgjnls</div> </div> <div> <div class="div0"> <div class="div1"> </div> <div id="tip2">我的同学</div> </div> <img src="lzu.jpg" alt="" class="aa"> <div>njfksdahnjkegndkrfgmnklsgjnls</div> </div> <div> <div class="div0"> <div class="div1"> </div> <a id="tip">我的家乡</a> </div> <img src="hometown.jpg" alt="" class="aa"> <div>njfksdahnjkegndkrfgmnklsgjnls</div> </div> <div id="foot"> nasklfseldgml;sdfghtl;h     134156546546     nasklfseldgml;sdfghtl;h </div> </main> </body> </html>
相关文章推荐
- android仿QQ个人主页下拉回弹效果
- 【十六】使用面向对象 写一个个人主页
- 个人博客搭建之一步步使用Github Page创建博客主页(2)
- 个人主页
- Android仿人人客户端(v5.7.1)——个人主页(一)
- 在clubof.net上建立了个人主页
- 做一个略调皮的个人主页--菜单篇
- android开发中WebView控件的实例与注意要点——个人主页浏览器简易实现
- 个人主页
- 将CSDN的登陆框插入我的个人主页
- 张银奎个人主页
- 用github写自己的个人主页
- 一步步教你使用Hexo配合github搭建个人主页
- 一步步教你使用Hexo配合github搭建个人主页
- 为什么CSDN中个人主页和我的博客两大版块分开这么明显
- 个人主页搭建历程
- 利用Github免费搭建个人主页(个人博客)
- 近段时间“个人主页制作”心得
- NODE.JS+EXPRESS.JS+百度BAE服务 构建学术个人主页
- iOS开发 - 仿简书个人主页多页面滑动视图