HTML+CSS实现奇特的的企业官网效果

简介: HTML+CSS实现奇特的的企业官网效果

效果




完整代码

HTML部分

<div class="container">
        <header class="header">
            <div class="logo">某某某公司</div>
            <nav class="nav-menu">
                <a href="#" class="nav-item">项目资料</a>
                <a href="#" class="nav-item">商业资讯</a>
                <a href="#" class="nav-item">专家顾问</a>
                <a href="#" class="nav-item">服务介绍</a>
                <a href="#" class="nav-item">联系我们</a>
            </nav>
           
        </header>
        
        <div class="main-content">
            <section class="hero">
                <div class="hero-content">
                    <h1>您专属的融资中心</h1>
                    <p>一站式融资解决方案,精准政府、银行、资本市场三大资源渠道</p>
                    <div class="cta-buttons">
                        <a href="#" class="cta-button">产品服务手册</a>
                        <a href="#" class="cta-button">免费咨询</a>
                    </div>
                </div>
            </section>
            <section class="login-section">
                <form class="login-form">
                    <input type="text" placeholder="手机号/用户名">
                    <input type="password" placeholder="密码">
                    <button class="login-button">登 录</button>
                </form>
                <div class="social-login">
                    <a href="#">社交账号登录</a>
                    <a href="#">忘记密码?</a>
                </div>
            </section>
        </div>
        
        <div class="stats">
            <div class="stat-item">
                <div class="stat-number">2,903亿</div>
                <div class="stat-label">融资金额</div>
            </div>
            <div class="stat-item">
                <div class="stat-number">230+</div>
                <div class="stat-label">合作企业</div>
            </div>
            <div class="stat-item">
                <div class="stat-number">1,000+</div>
                <div class="stat-label">成功项目</div>
            </div>
        </div>
        
        <div class="icons">
            <div class="icon-item">
                <div class="icon-circle">
                    <img src="./img/0901.png" alt="扶持补贴">
                </div>
                <div class="icon-label">扶持补贴</div>
            </div>
            <div class="icon-item">
                <div class="icon-circle">
                    <img src="./img/0901.png" alt="专项资金">
                </div>
                <div class="icon-label">专项资金</div>
            </div>
            <div class="icon-item">
                <div class="icon-circle">
                    <img src="./img/0901.png" alt="政府资金">
                </div>
                <div class="icon-label">政府资金</div>
            </div>
        </div>
    </div>

CSS部分


@keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideIn {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        body, html {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            height: 100%;
        }
        .container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .header {
            background-color: white;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
            animation: fadeIn 0.5s ease-out;
        }
        .logo {
            color: #ff6600;
            font-size: 24px;
            font-weight: bold;
        }
        .nav-menu {
            display: flex;
        }
        .nav-item {
            margin-left: 20px;
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .nav-item:hover {
            color: #ff6600;
        }
        .user-actions {
            display: flex;
            align-items: center;
        }
        .user-actions a {
            margin-left: 20px;
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .user-actions a:hover {
            color: #ff6600;
        }
        .main-content {
            flex: 1;
            display: flex;
            background-image: url('./img/012.jpg');
            background-size: cover;
            background-position: center;
        }
        .hero {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-left: 50px;
            color: white;
        }
        .hero-content {
            animation: slideIn 0.8s ease-out;
        }
        .hero-content h1 {
            font-size: 36px;
            margin-bottom: 10px;
        }
        .hero-content p {
            font-size: 18px;
            margin-bottom: 20px;
            max-width: 600px;
        }
        .cta-buttons {
            display: flex;
            margin-bottom: 40px;
        }
        .cta-button {
            background-color: #ff6600;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 4px;
            margin-right: 10px;
            transition: background-color 0.3s ease;
        }
        .cta-button:hover {
            background-color: #e55b00;
        }
        .login-section {
            width: 300px;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 20px;
            align-self: center;
            margin-right: 50px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            animation: fadeIn 1s ease-out 0.5s both;
        }
        .login-form input {
            display: block;
            margin-bottom: 15px;
            padding: 10px;
            width: 100%;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .login-button {
            background-color: #ff6600;
            color: white;
            border: none;
            padding: 12px;
            width: 100%;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }
        .login-button:hover {
            background-color: #e55b00;
        }
        .social-login {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
        }
        .social-login a {
            color: #666;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }
        .social-login a:hover {
            color: #ff6600;
        }
        .stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            width: 1200px;
            margin: 0 auto;
            margin-top:-20px;
            background-color: #fff;
            padding: 25px 20px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .stat-item {
            text-align: center;
        }
        .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: #ff6600;
        }
        .stat-label {
            font-size: 14px;
            color: #666;
        }
        .icons {
            display: flex;margin-top: 60px;;
            justify-content: space-around;
            text-align: center;
            
            padding-bottom: 40px;
        }
        .icon-item {
            width: 100px;
        }
        .icon-circle {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 2px solid #ccc;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
        }
        .icon-circle img {
            width: 40px;
            height: 40px;
        }
        .icon-label {
            font-size: 14px;
            color: #333;
        }
         /* 新增的关键帧动画 */
    @keyframes fadeInIcon {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    /* 修改 .icon-item 的样式 */
    .icon-item {
        width: 100px;
        animation: fadeInIcon 0.5s ease-in-out;
    }
    /* 为每个 .icon-item 设置不同的延迟时间 */
    .icon-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    .icon-item:nth-child(2) {
        animation-delay: 0.3s;
    }
    .icon-item:nth-child(3) {
        animation-delay: 0.5s;
    }
相关文章
|
8天前
|
前端开发
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
26 1
【2025优雅草开源计划进行中01】-针对web前端开发初学者使用-优雅草科技官网-纯静态页面html+css+JavaScript可直接下载使用-开源-首页为优雅草吴银满工程师原创-优雅草卓伊凡发布
|
1月前
|
人工智能 程序员 UED
【01】完成新年倒计时页面-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
【01】完成新年倒计时页面-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
123 21
【01】完成新年倒计时页面-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
|
29天前
|
前端开发 JavaScript
【02】v1.0.1更新增加倒计时完成后的放烟花页面-优化播放器-优化结构目录-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
【02】v1.0.1更新增加倒计时完成后的放烟花页面-优化播放器-优化结构目录-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
53 14
【02】v1.0.1更新增加倒计时完成后的放烟花页面-优化播放器-优化结构目录-蛇年新年快乐倒计时领取礼物放烟花html代码优雅草科技央千澈写采用html5+div+CSS+JavaScript-优雅草卓伊凡-做一条关于新年的代码分享给你们-为了C站的分拼一下子
|
28天前
css3 svg制作404页面动画效果HTML源码
css3 svg制作404页面动画效果HTML源码
64 34
|
1月前
html+js+css实现的建筑方块立体数字时钟源码
html+js+css实现的建筑方块立体数字时钟源码
79 33
|
30天前
|
前端开发
“弘五四,耀青春”程序创意获奖作品【html+css】
本作品以“青春筑梦,共创未来”为主题,采用动态龙元素展现青春活力与创新精神。页面设计简洁明快,色彩协调,突显年轻人积极向上的风貌。作品内容包括获奖截图、名字《时代扬新帆》及源代码分享。特别说明:禁止用于商业活动,可用于比赛和作业等开源场景。最后,作者表达了对五四精神的致敬与传承,强调了青春活力和创造力的重要性,并感谢评委和支持者。 **获奖感言摘录:** “获得这个奖项,对我们团队来说,既是认可也是激励。我们将继续努力,不断优化产品,为用户带来更好的体验,为社会贡献更多价值。”
33 2
|
2月前
一个好看的小时钟html+js+css源码
一个好看的小时钟html+js+css源码
116 24
|
3月前
|
前端开发 测试技术 定位技术
如何利用HTML和CSS构建企业级网站的全过程。从项目概述到页面结构设计,再到HTML结构搭建与CSS样式设计,最后实现具体页面并进行优化提升,全面覆盖了网站开发的关键步骤
本文深入介绍了如何利用HTML和CSS构建企业级网站的全过程。从项目概述到页面结构设计,再到HTML结构搭建与CSS样式设计,最后实现具体页面并进行优化提升,全面覆盖了网站开发的关键步骤。通过实例展示了主页、关于我们、产品展示、新闻动态及联系我们等页面的设计与实现,强调了合理布局、美观设计及用户体验的重要性。旨在为企业打造一个既专业又具吸引力的线上平台。
121 7
|
3月前
|
前端开发 JavaScript 搜索推荐
HTML与CSS在Web组件化中的核心作用及前端技术趋势
本文探讨了HTML与CSS在Web组件化中的核心作用及前端技术趋势。从结构定义、语义化到样式封装与布局控制,两者不仅提升了代码复用率和可维护性,还通过响应式设计、动态样式等技术增强了用户体验。面对兼容性、代码复杂度等挑战,文章提出了相应的解决策略,强调了持续创新的重要性,旨在构建高效、灵活的Web应用。
68 6
|
3月前
|
存储 移动开发 前端开发
高效的 HTML 与 CSS 编写技巧,涵盖语义化标签、文档结构优化、CSS 预处理、模块化设计、选择器优化、CSS 变量、媒体查询等内容
本文深入探讨了高效的 HTML 与 CSS 编写技巧,涵盖语义化标签、文档结构优化、CSS 预处理、模块化设计、选择器优化、CSS 变量、媒体查询等内容,旨在提升开发效率、网站性能和用户体验。
86 5

热门文章

最新文章