开发初探 |
您所在的位置:网站首页 › 用html制作百度首页 › 开发初探 |
目的
根据百度登陆的网页界面,自己尝试写一个类似的界面,用 html 和 css 代码实现。 并将设置页面的 css 代码贴在下方 html { background-color: #808080; } #div_totle { background-color: white; width: 360px; height: 400px; margin: auto; margin-top: 5%; align-items: center; padding-top: 10px; } #div_body { /* background-color: blue; */ width: 340px; height: 330px; margin: auto; } #div_head { width: 100%; height: 70px; margin: auto; } #div_img { /* background-color: #808080; */ width: 40%; height: 70px; margin: auto; float: left; } #div_text { /* background-color: #87CEFA; */ width: 60%; height: 70px; margin: auto; float: left; } #div_end { background-color: rgba(0, 204, 255, 0.2); width: 100%; height: 70px; margin: auto; } .input-class { border: 1px lightslategrey solid; color: #808080; border-radius: 5px; width: 98.5%; height: 30px; }这就是整个页面的所有代码内容了,然后得到效果图: HTML学习网站. CSS 学习网站. 喜欢别忘了点个关注,后续更新更多学习开发的过程! |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |