新年快乐2024

本文介绍了如何使用HTML和CSS代码制作一个简单的静态网页,包含节日祝福内容和链接,展示了基本的网页布局和样式设置。
摘要由CSDN通过智能技术生成

简单做一个静态网页

一、效果

二、html代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新年快乐</title>
    <link rel="stylesheet" href="Happy New Year.css">
    <link rel="icon" href="favicon (1).ico">
</head>
<body>
    <div class="background1"></div>
    <div class="headline">
        <table>
            <tr>
                <th><a href="https://www.baidu.com/" target="_blank">首页</a></th>
                <th><a href="https://www.baidu.com/" target="_blank">节日简介</a></th>
                <th><a href="https://www.baidu.com/" target="_blank">节日起源</a></th>
                <th><a href="https://www.baidu.com/" target="_blank">节日活动</a></th>
                <th><a href="https://www.baidu.com/" target="_blank">节日饮食</a></th>
                <th><a href="https://www.baidu.com/" target="_blank">节日习俗</a></th>
                <th><a href="https://www.baidu.com/" target="_blank">故事传说</a></th>
            </tr>
        </table>
    </div>
    <div class="conten">
        <p>愿新的一年,阳光明媚,万事如意。</p>
        <p>祝福您在新的一年里,心想事成,万事如意。</p>
        <p>新年新气象,祝您在新的一年里,事业有成,家庭幸福。</p>
        <p>愿您在新的一年里,心情愉悦,身体健康,万事顺利。</p>
        <p>祝您在新的一年里,财源滚滚,好运连连。</p>
        <p>愿您在新的一年里,笑口常开,幸福满满。</p>
        <p>祝您在新的一年里,梦想成真,前程似锦。</p>
        <p>愿您在新的一年里,快乐无比,幸福美满。</p>
        <p>祝您在新的一年里,万事如意,心想事成。</p>
        <p>愿您在新的一年里,好运连连,幸福满满。</p>
        <p>希望这些祝福文案能够为您带来一些灵感。祝您新年快乐!</p></div>
    <div class="weibu">© 2023 Gansu pony technology Co., LTD. All rights reserved.</div>
</body>
</html>

三、CSS代码

body {
    background-color: rgba(240,250,120, 0.2);
}
.background1 {
    background-image: url(wordart.jpg);
    background-repeat: no-repeat;
    background-size: 100% 300px;
    height: 300px;
    text-align: center;
    line-height: 300px;
    font-weight: 700;
    color: aliceblue;
    font-size: 100px;
}
.headline {
    background-color: rgba(0, 0, 0);
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}
th {
    width: 210px;
}
th:hover {
    background-color:red ;
}
a {
    color: #efecef;
    font:30px/2.5em 宋体;
    text-align: center;
    text-decoration: none;
    width: 204px;
    height:inherit;
    display: inline-block;
}
.conten {
    width: 100%;
    background-color: rgba(0, 0, 0);
    margin-top: 10px;
    color: bisque;
    font: 25px/2.5em 宋体;
    text-align: center;
    border-radius: 5px;
}
.weibu {
    color: #000;
    text-align: center;
}

四、资源

资源icon-default.png?t=N7T8https://download.csdn.net/download/qq_67293098/88688571?spm=1001.2014.3001.5501

  • 6
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值