当前位置: 首页 > news >正文

百度一下首页制作(HTML+CSS)

部分代码展示:

<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><title>百度一下,你就知道</title><style type="text/css">/*清除元素默认性质*/body { margin: 0;padding: 0;list-style: none;text-decoration: none;font-size: 1;font-family: "宋体";background-color: white;}/*全部a元素的基础属性*/a {     color: #00c;text-decoration: none;}a:hover{color:red;text-decoration: underline;}/*顶部的行*/#topline {  text-align: right;font-size:20px;margin:10px 10px;}/*百度图标*/#logo {  margin-top: 10px;text-align: center;}/*百度应用*/#apps {  margin-top: 20px;text-align: center;font-size: 30px;font-weight: bold;}/*搜索*/#search {margin-top: 20px;text-align: center;}#search #enter{  /*搜索内容*/width:600px;height:30px;font-size: 20px;font-weight: 400;vertical-align: middle;border: 1px solid black;border-radius: 10px 10px 10px 10px;}#search #submit{  /*搜索按钮*/width:100px;height:37px;font-size: 20px;font-weight: 500; vertical-align: middle;cursor: pointer;color: white;background-color:#3836E0;border: 1px solid black;border-radius: 10px 10px 10px 10px;}/*热搜*/#hotnews #title {margin-top: 50px;}#hotnews #title a{font-size: 20px;font-family: Arial Bold;font-weight: 900;color:black;margin-left: 485px;}#hotnews #hotlist{display: flex;justify-content: center;}#hotnews #hotlist ul {padding-top: 5px;width: 280px;display: inline-block;}#hotnews #hotlist li{height: 36px;line-height: 36px;font-size: 20px;text-align: left;}#hotnews #hotlist a{height: 36px;line-height: 36px;font-size: 20px;padding-left: 20px;}#hotnews ul{list-style-type:none;}#hotnews #top3{font-weight: bold;}#hotnews #top3 #one,#hotnews #top3 #one a{color: #cc061d;}#hotnews #top3 #two,#hotnews #top3 #two a{color: rgb(240, 105, 15);}#hotnews #top3 #three,#hotnews #top3 #three a{color: #f0a923;}#hotnews #else ul li,#hotnews #else ul li a{color:#72747d}/*底部的行*/#bottomline{margin-top: 240px;position: absolute;left: 50%;    transform: translateX(-50%); }</style>
</head>
<body><div id="topline"><a href="https://www.baidu.com/gaoji/advanced.html">设置</a>|<a href="https://passport.baidu.com/">登录</a></div><div id="logo"><a href="https://www.baidu.com/" target="_blank"><img src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" title="点此进入百度官网" width="370" height="180"></a></div><div id="apps"><a href="http://news.baidu.com/" target="_blank">新闻</a><a href="https://map.baidu.com/" target="_blank">地图</a><a href="http://image.baidu.com/" target="_blank">图片</a><a href="https://haokan.baidu.com/" target="_blank">视频</a><a href="http://tieba.baidu.com/" target="_blank">贴吧</a><a href="https://wenku.baidu.com/" target="_blank">文库</a><a href="https://baike.baidu.com/" target="_blank">百科</a><a href="https://www.baidu.com/more/" target="_blank">更多>></a></div><div id="search"><input id="enter" type="text" maxlength="25" value="最多输入20个字"/><input id="submit" type="submit" value="百度一下"/></div><div id="hotnews"><div id="title"><a href="https://top.baidu.com/" target="_blank">百度热搜></a></div>

界面展示: 

相关文章:

  • Java安全
  • 使用docker离线制作es镜像,方便内网环境部署
  • RabbitMQ实践——交换器(Exchange)和绑定(Banding)
  • 数据结构:快速排序,归并排序,计数排序的实现分析
  • DSP28335:定时器
  • Linux中ls -lsa 和ls -lst区别
  • leetcode189 轮转数组
  • 快速搭建Jenkins自动化集成cicd工具
  • 高效、智能、安全:小型机房EasyCVR+AI视频综合监控解决方案
  • 为数据安全护航,袋鼠云在数据分类分级上的探索实践
  • Spring Bean详解
  • 嵌入式实验---实验二 中断功能实验
  • 【计算机网络】[第4章 网络层][自用]
  • vue3+ts 使用vue3-ace-editor实现Json编辑器
  • NV-Embed论文阅读笔记
  • 《网管员必读——网络组建》(第2版)电子课件下载
  • 11111111
  • Angularjs之国际化
  • Fundebug计费标准解释:事件数是如何定义的?
  • git 常用命令
  • Java 多线程编程之:notify 和 wait 用法
  • JavaScript 无符号位移运算符 三个大于号 的使用方法
  • jQuery(一)
  • Laravel 中的一个后期静态绑定
  • mockjs让前端开发独立于后端
  • Python实现BT种子转化为磁力链接【实战】
  • spring cloud gateway 源码解析(4)跨域问题处理
  • Terraform入门 - 1. 安装Terraform
  • Travix是如何部署应用程序到Kubernetes上的
  • 闭包--闭包之tab栏切换(四)
  • 对象引论
  • 理解IaaS, PaaS, SaaS等云模型 (Cloud Models)
  • 前端技术周刊 2018-12-10:前端自动化测试
  • 数组大概知多少
  • 通过npm或yarn自动生成vue组件
  • 新版博客前端前瞻
  • 移动端高清、多屏适配方案
  • (35)远程识别(又称无人机识别)(二)
  • (C#)Windows Shell 外壳编程系列9 - QueryInfo 扩展提示
  • (DenseNet)Densely Connected Convolutional Networks--Gao Huang
  • (iPhone/iPad开发)在UIWebView中自定义菜单栏
  • (MTK)java文件添加简单接口并配置相应的SELinux avc 权限笔记2
  • (ZT)薛涌:谈贫说富
  • (附源码)springboot课程在线考试系统 毕业设计 655127
  • (六)库存超卖案例实战——使用mysql分布式锁解决“超卖”问题
  • (十八)Flink CEP 详解
  • (未解决)jmeter报错之“请在微信客户端打开链接”
  • (一) springboot详细介绍
  • 、写入Shellcode到注册表上线
  • .helper勒索病毒的最新威胁:如何恢复您的数据?
  • .NET CORE Aws S3 使用
  • .NET 通过系统影子账户实现权限维持
  • .NET 项目中发送电子邮件异步处理和错误机制的解决方案
  • .NET 指南:抽象化实现的基类
  • .NET/C# 在 64 位进程中读取 32 位进程重定向后的注册表