css页面布局基础
2015-07-31 02:35
591 查看
百度首页制作
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>百度首页</title> <style type="text/css"> #homepage { border: 1px none; font-family: 微软雅黑; width: 1340px; height: 600px; } #oriented { float: left; margin: 0 30px; } .operate { margin-right: 10px; } .more { background-color:blue ; color:white ; } #trademark { width: 230px; margin: 0 auto; margin-top:80px ; } #search { width: 670px; margin: 0 auto; height: 40px; } .button { margin-left: -9px; background-color:blue ; color:white ; font-size: 16px; height: 41px; } .text { height: 33px; } #describe { text-align: center; margin:310px 1px 1px; } .set { margin: 0 5px; color:blue ; } </style> </head> <body> <div id="homepage"> <div id="oriented"> <span class="operate">新闻</span> <span class="operate">hao123</span> <span class="operate">地图</span> <span class="operate">视频</span> <span class="operate">贴吧</span> <span class="operate">登录</span> <span class="operate">设置</span> <span class="more">更多产品</span> </div> <div id="trademark"> <img class="logo" src="3.png" height="85" width="210"> </div> <div id="search"> <input class="text" id="searchbar" size="85" /> <input class="button" type="submit" value="百度一下"/> </div> <div id="describe"> <p> <span class="set">把百度设为主页</span> <span class="set">关于百度</span> <span class="set">About Baidu</span> </p> <span>©2015 Baidu 使用百度前必读 一件反馈 京ICP证030173号</span> </div> </div> </body> </html>
相关文章推荐
- css页面布局基础盒模型
- CSS的布局
- CSS布局基础
- ActionBar、ActionMode样式设定解析
- CSS布局:图片在DIV中上下左右居中(水平和垂直都居中)
- 有利于SEO的DIV+CSS的命名规则
- css布局: 两栏 自适应高度
- CSS常用布局实现方法
- CSS常用布局实现方法
- CSS设置元素字体颜色与背景
- 7_30_html_框架&css样式表
- css常见的几种布局优点缺点总结
- 浅谈CSS sprites
- CSS的position/float/display都有哪些取值,它们相互叠加时的行为都是什么?
- CSS3扇形动画菜单 鼠标滑过扇形展开动画
- 分享下我的博客园CSS
- 在IE678下解决伪类last-child的css2方法
- CSS中一些@规则的用法小结
- 关于stacking context和CSS z-index的总结
- css模块化思想(一)