wrjc1hod 发表于 2024-7-27 22:31:48

HTML+CSS制作简易百度首页(代码)

<span style="color: black;">&lt;!DOCTYPE <span style="color: black;">html</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">html</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">head</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">meta</span> <span style="color: black;">charset</span>=<span style="color: black;">"utf-8"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">title</span>&gt;</span>百度一下,你就<span style="color: black;">晓得</span><span style="color: black;">&lt;/<span style="color: black;">title</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">style</span> <span style="color: black;">type</span>=<span style="color: black;">"text/css"</span>&gt;</span><span style="color: black;">
      <span style="color: black;">#img1</span>{
      <span style="color: black;">position</span>: relative;
      <span style="color: black;">left</span>: <span style="color: black;">650px</span>;
      }
      <span style="color: black;">ul</span> <span style="color: black;">li</span>{
      <span style="color: black;">float</span>:left;<span style="color: black;">list-style</span>: none;
      <span style="color: black;">padding</span>: <span style="color: black;">5px</span>;
      }
      <span style="color: black;">a</span>{
      <span style="color: black;">padding</span>: <span style="color: black;">5px</span>;
      <span style="color: black;">text-decoration</span>:none;
      }

      <span style="color: black;">#baidu</span>{
      <span style="color: black;">text-align</span>: center;
      }
      <span style="color: black;">#input1</span>{
      <span style="color: black;">font-size</span>: <span style="color: black;">30px</span>;
      <span style="color: black;">width</span>: <span style="color: black;">560px</span>;
      }
      <span style="color: black;">#db</span>{
      <span style="color: black;">position</span>:fixed; <span style="color: black;">bottom</span>:<span style="color: black;">0</span>;
      }
      <span style="color: black;">#div1</span>{
      <span style="color: black;">position</span>: absolute;
      <span style="color: black;">bottom</span>: <span style="color: black;">0</span>;
      <span style="color: black;">right</span>: <span style="color: black;">0</span>;
      }
      <span style="color: black;">#rebang</span>{
      <span style="color: black;">font-size</span>: <span style="color: black;">25px</span>;
      <span style="color: black;">position</span>: relative;<span style="color: black;">left</span>: <span style="color: black;">610px</span>;
      }

      <span style="color: black;">ul</span> <span style="color: black;">li</span> <span style="color: black;">div</span>{
      <span style="color: black;">display</span>: none;
      }
      <span style="color: black;">ul</span> <span style="color: black;">li</span><span style="color: black;">:hover</span> <span style="color: black;">div</span>{
      <span style="color: black;">display</span>: block;
      }
      <span style="color: black;">#C</span>{
      <span style="color: black;">font-size</span>: <span style="color: black;">20px</span>;
      <span style="color: black;">float</span>: left;
      }
      <span style="color: black;">#B</span>{
      <span style="color: black;">position</span>: absolute;<span style="color: black;">margin-left</span>: <span style="color: black;">260px</span>;
      <span style="color: black;">display</span>: none;
      }
      <span style="color: black;">#A</span>{
      <span style="color: black;">font-size</span>: <span style="color: black;">20px</span>;
      <span style="color: black;">width</span>: <span style="color: black;">1000px</span>;
      }
      <span style="color: black;">#A</span><span style="color: black;">:hover</span> <span style="color: black;">#B</span>{
      <span style="color: black;">display</span>: block;
      }
      <span style="color: black;">#D</span>{

      <span style="color: black;">font-size</span>: <span style="color: black;">20px</span>;
      <span style="color: black;">float</span>: right;
      }<span style="color: black;">#F</span>{
      <span style="color: black;">position</span>: absolute;

      <span style="color: black;">display</span>: none;
      }
      <span style="color: black;">#D</span><span style="color: black;">:hover</span> <span style="color: black;">#F</span>{
      <span style="color: black;">display</span>: block;
      }
      <span style="color: black;">#G</span>{
      <span style="color: black;">height</span>: <span style="color: black;">50px</span>;

      <span style="color: black;">float</span>: right;
      }
      <span style="color: black;">#H</span>{
      <span style="color: black;">bac<span style="color: black;">公斤</span>round-color</span>: blue;
      }
      <span style="color: black;">#J</span>{
      <span style="color: black;">position</span>: absolute;
      <span style="color: black;">right</span>: <span style="color: black;">800px</span>;
      <span style="color: black;">top</span>: <span style="color: black;">300px</span>;
      <span style="color: black;">display</span>: none;
      <span style="color: black;">z-index</span>: <span style="color: black;">2</span>;

      }
      <span style="color: black;">#G</span><span style="color: black;">:hover</span> <span style="color: black;">#J</span>{
      <span style="color: black;">display</span>: block;

      }
      <span style="color: black;">#Z</span>{
      <span style="color: black;">width</span>: <span style="color: black;">100px</span>;
      <span style="color: black;">height</span>: <span style="color: black;">30px</span>;
      }
      <span style="color: black;">#W</span>{
      <span style="color: black;">font-size</span>: <span style="color: black;">22px</span>;
      }
    </span><span style="color: black;">&lt;/<span style="color: black;">style</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">head</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">body</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"C"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"http://news.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">资讯</span><span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.hao123.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span>hao123<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://map.baidu.com/@12126927,4038819,13z/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span>地图<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://haokan.baidu.com/?sfrom=baidu-top/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span>视频<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://tieba.baidu.com/index.html/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span>贴吧<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://xueshu.baidu.com//"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span>学术<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"A"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.baidu.com/more//"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">更加多</span><span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"B"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">ul</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://pan.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/wangpan.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>网盘<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://zhidao.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/zhidao.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span><span style="color: black;">晓得</span><span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://baike.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/baike.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>百科<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://image.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/tupian.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span><span style="color: black;">照片</span><span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">ul</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">ul</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://baobao.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/baobao.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>宝宝<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://wenku.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/wenku.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>文库<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://jingyan.baidu.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/jingyan.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>经验<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"http://music.taihe.com/"</span> <span style="color: black;">target</span>=<span style="color: black;">"_blank"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/yinyue.png"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">img</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>音乐<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">ul</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"G"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"#"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">input</span> <span style="color: black;">type</span>=<span style="color: black;">"button"</span> <span style="color: black;">value</span>=<span style="color: black;">"登录"</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">input</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"J"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/JJJ.png"</span> &gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"D"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"#"</span>&gt;</span>设置<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"F"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"#"</span>&gt;</span>搜索设置<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"#"</span>&gt;</span>高级搜索<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"#"</span>&gt;</span>关闭预测<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"#"</span>&gt;</span>隐私设置<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">br</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>

    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"img1"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">img</span> <span style="color: black;">src</span>=<span style="color: black;">"imgs/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png"</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"baidu"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"#"</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">input</span> <span style="color: black;">id</span>=<span style="color: black;">"input1"</span> <span style="color: black;">type</span>=<span style="color: black;">"text"</span> <span style="color: black;">id</span>=<span style="color: black;">""</span> <span style="color: black;">value</span>=<span style="color: black;">""</span> /&gt;</span><span style="color: black;">&lt;<span style="color: black;">input</span> <span style="color: black;">id</span>=<span style="color: black;">"Z"</span> <span style="color: black;">type</span>=<span style="color: black;">"button"</span> <span style="color: black;">value</span>=<span style="color: black;">"百度一下"</span> /&gt;</span><span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"rebang"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"http://top.baidu.com/?fr=mhd_card"</span>&gt;</span>百度热榜<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"resou"</span> <span style="color: black;">align</span>=<span style="color: black;">"center"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">table</span> <span style="color: black;">id</span>=<span style="color: black;">"W"</span> <span style="color: black;">border</span>=<span style="color: black;">"0"</span> <span style="color: black;">cellspacing</span>=<span style="color: black;">"5"</span> <span style="color: black;">cellpadding</span>=<span style="color: black;">"25"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">tr</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">td</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.baidu.com/s?cl=3&amp;tn=baidutop10&amp;fr=top1000&amp;wd=%E7%89%B9%E6%9C%97%E6%99%AE%E7%A7%B0NBA%E5%83%8F%E4%B8%80%E4%B8%AA%E6%94%BF%E6%B2%BB%E7%BB%84%E7%BB%87&amp;rsv_idx=2&amp;rsv_dl=fyb_n_homepage&amp;hisfilter=1"</span>&gt;</span>1.特朗普炮轰NBA<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">td</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">td</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.baidu.com/s?cl=3&amp;tn=baidutop10&amp;fr=top1000&amp;wd=%E5%AE%98%E6%96%B9%E8%B0%83%E6%9F%A5%E5%A5%B3%E6%95%99%E5%B8%88%E4%B8%BE%E6%8A%A5%E6%A0%A1%E9%95%BF%E6%80%A7%E9%AA%9A%E6%89%B0&amp;rsv_idx=2&amp;rsv_dl=fyb_n_homepage&amp;hisfilter=1"</span>&gt;</span>4.官方调查女教师<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">td</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">tr</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">tr</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">td</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.baidu.com/s?cl=3&amp;tn=baidutop10&amp;fr=top1000&amp;wd=%E8%94%A1%E8%8E%89%E4%B8%8D%E5%86%8D%E6%8B%85%E4%BB%BB%E6%AD%A6%E6%B1%89%E5%B8%82%E4%B8%AD%E5%BF%83%E5%8C%BB%E9%99%A2%E4%B9%A6%E8%AE%B0&amp;rsv_idx=2&amp;rsv_dl=fyb_n_homepage&amp;hisfilter=1"</span>&gt;</span>2.蔡丽<span style="color: black;">再也不</span>担任武汉市医院书记<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">td</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">td</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.baidu.com/s?cl=3&amp;tn=baidutop10&amp;fr=top1000&amp;wd=%E9%99%88%E9%98%BF%E5%96%9C%E5%8E%BB%E4%B8%96&amp;rsv_idx=2&amp;rsv_dl=fyb_n_homepage&amp;hisfilter=1"</span>&gt;</span>5.陈阿喜去世<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">td</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">tr</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">tr</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">td</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.baidu.com/s?cl=3&amp;tn=baidutop10&amp;fr=top1000&amp;wd=%E5%85%A8%E7%90%83%E8%BF%9110%E4%BA%BF%E4%BA%BA%E5%8F%97%E7%B2%BE%E7%A5%9E%E5%81%A5%E5%BA%B7%E9%97%AE%E9%A2%98%E5%BD%B1%E5%93%8D&amp;rsv_idx=2&amp;rsv_dl=fyb_n_homepage&amp;hisfilter=1"</span>&gt;</span>3.<span style="color: black;">全世界</span>近10亿人受精神健康问题影响<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">td</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">td</span>&gt;</span><span style="color: black;">&lt;<span style="color: black;">a</span> <span style="color: black;">href</span>=<span style="color: black;">"https://www.baidu.com/s?cl=3&amp;tn=baidutop10&amp;fr=top1000&amp;wd=31%E7%9C%81%E5%8C%BA%E5%B8%82%E6%96%B0%E5%A2%9E%E5%A2%83%E5%A4%96%E8%BE%93%E5%85%A59%E4%BE%8B&amp;rsv_idx=2&amp;rsv_dl=fyb_n_homepage&amp;hisfilter=1"</span>&gt;</span>6.31省区市新增境外输入9例<span style="color: black;">&lt;/<span style="color: black;">a</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">td</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">tr</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">table</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"db"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">ul</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>设为首页<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>关于百度<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>About Baidu<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>百度营销<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">运用</span>百度前必读<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>意见反馈<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span><span style="color: black;">帮忙</span>中心<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">ul</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">div</span> <span style="color: black;">id</span>=<span style="color: black;">"div1"</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">ul</span>&gt;</span>


    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>@2020 Baidu<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>(京)-经营性-2017-0020<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>京公网安备11000002000001号<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span>
    <span style="color: black;">&lt;<span style="color: black;">li</span>&gt;</span>京ICP证030173号<span style="color: black;">&lt;/<span style="color: black;">li</span>&gt;</span><span style="color: black;">&lt;/<span style="color: black;">ul</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">div</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">body</span>&gt;</span>
    <span style="color: black;">&lt;/<span style="color: black;">html</span>&gt;</span>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">以上代码写出来的结果如下图:</h1>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/fe8c7e783304457eb8f972226ac4619d~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1722664117&amp;x-signature=vd3p22yYscp%2FTpWHz8ET3OmH7qU%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">新手勿喷!!!</p>




7wu1wm0 发表于 2024-10-3 21:38:58

你的话语如春风拂面,温暖了我的心房,真的很感谢。

wrjc1hod 发表于 2024-10-10 02:01:08

我完全同意你的观点,说得太对了。
页: [1]
查看完整版本: HTML+CSS制作简易百度首页(代码)