CSS Demo

在这里插入图片描述


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        html, body {
            height: 100%;
        }
        body {
            background: url(img/bg.jpg) no-repeat center center;
            background-size: cover;
        }
        .main {
            width: 370px;
            height: 380px;
            position: absolute;
            left: 50%;
            top: 50%;
            box-sizing: border-box;
            padding: 25px 30px;
            margin-left: -185px;
            margin-top: -190px;
            border-radius: 5px;
            background-image: url("img/tmbg-white.png");
        }

        .main > h1 {
            color: #333;
            font-size: 24px;
            font-weight: lighter;
            text-align: center;
        }
        .username, .password, .verification-code {
            margin-top: 20px;
            position: relative;
        }
        .username {
            margin-top: 25px;
        }
        .username > input, .password > input, .verification-code > input {
            width: 100%;
            height: 46px;
            font-size: 16px;
            box-sizing: border-box;
            padding: 10px;
            border: 1px solid #ddd;
            outline: 0 none;
            line-height: 24px;
            border-radius: 3px;
        }

        .username > i, .password > i {
            width: 20px;
            height: 20px;
            position: absolute;
            top: 9px;
            right: 15px;
        }

        .username > i {
            background-image: url("img/username.png");
        }

        .password > i {
            background-image: url("img/password.png");
        }

        .verification-code > input {
            padding-right: 41px;
        }

        .verification-code > img {
            width: 100px;
            height: 44px;
            position: absolute;
            border-top-right-radius: 3px;
            border-bottom-right-radius: 3px;
            border-left: 1px solid #ddd;
            right: 1px;
            top: 1px;
        }

        .login-btn {
            width: 100%;
            height: 46px;
            color: #fff;
            font-size: 16px;
            margin-top: 30px;
            outline: 0 none;
            border: solid 1px #0ae;
            border-radius: 3px;
            text-align: center;
            background-color: #0ae;
        }
    </style>
</head>
<body>
    <div class="main">
        <h1>尚学堂人事管理系统</h1>
        <form action="login.jsp">
            <div class="username">
                <input type="text" placeholder="登录账号">
                <i></i>
            </div>
            <div class="password">
                <input type="password" placeholder="登录密码">
                <i></i>
            </div>
            <div class="verification-code">
                <input type="text" placeholder="填写右侧的验证码">
                <img src="img/passcode.jpg" alt="验证码">
            </div>
            <input type="submit" class="login-btn" value="登录">
        </form>
    </div>
</body>
</html>

在这里插入图片描述


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*清除默认样式start*/
        * {
            padding: 0;
            margin: 0;
        }
        body {
            font-family: arial;
        }
        ul {
            list-style: none;
        }
        .clearfix {
            clear: both;
            visibility: hidden;
            font-size: 0;
            line-height: 0;
            height: 0;
        }
        /*清除默认样式end*/

        /*设置导航栏样式start*/
        .nav-list {
            float: right;
            margin-right: 15px;
        }
        .nav-list > li {
            float: left;
        }
        .nav-list > li > a {
            display: inline-block;
            margin: 10px 2px;
            padding: 0px 5px;
            color: #333;
            font-size: 13px;
            font-weight: 600;
            line-height: 24px;
        }
        .nav-list > li > a:hover {
            color: #00c;
        }
        .nav-list > .more > a {
            background-color: blue;
            border-radius: 2px;
            color: white;
            text-decoration: none;
        }
        /*设置导航栏样式end*/


        /*搜索模块start*/
        .search-box {
            /*background-color: blue;*/
        }
        /*设置logon图片*/
        .search-box > .logo {
            width: 270px;
            margin: 0 auto 20px;
        }

        /*设置搜索框和提交按钮并排显示*/
        .search, input[type="submit"] {
            float: left;
        }

        /*美化搜索框和提交按钮*/
        .search > input {
            width: 540px;
            height: 38px;
            /*设置为怪异盒子模型*/
            box-sizing: border-box;
        }
        input[type="submit"] {  /*默认为怪异盒子模型*/
            width: 100px;
            height: 38px;
            background-color: #3385ff;
            color: #fff;
            border: 1px solid #2d78f4;
        }
        /*设置整个搜索模块左右居中*/
        .search-box {
            width: 640px;
            margin: 25px auto 0;
        }

        /*优化操作*/
        .search > input {
            /*清除搜索框右侧的边框*/
            border: 1px solid #ccc;
            /*transparent: 透明*/
            border-right-color: transparent;
            /*清除处于编辑状态的蓝色边框*/
            outline: 0 none;
            /*设置光标位置*/
            padding-left: 7px;
        }

        /*添加小相机*/
        .search {
            position: relative;
        }
        .search > i {
            /*display: inline-block;*/
            height: 16px;
            width: 18px;
            background-image: url(baidu/xj.png);
            background-repeat: no-repeat;

            position: absolute;  /*子绝父相*/
            top: 9px;
            right: 7px;
        }
        .search > i:hover {
            background-position: 0 -20px;
        }
        /*搜索模块end*/
        
        /*底部模块start*/
        .footer {
            margin: 200px 0 0;
        }
        /*二维码设置start*/
        .footer > .QRCode {
            width: 60px;
            margin: 0 auto 10px;
        }
        .footer > .QRCode > i {
            display: inline-block;
            width: 60px;
            height: 60px;
            background: url("baidu/zbios_efde696.png") no-repeat;
        }
        .footer > .QRCode > p {
            text-align: center;
            line-height: 23px;
            color: #666;
            font-weight: 700;
            font-size: 12px;
        }
        /*二维码设置end*/
        .footer {
            margin-bottom: 30px;
        }
        .footer-txt {
            text-align: center;
        }
        .footer-txt > a, .footer-txt > span {
            display: inline-block;
            color: #999;
            font-size: 12px;
            line-height: 23px;
        }

        .footer-first > a , .footer-txt > .footer-last{
            margin: 0 10px;
        }

        .footer-txt > .tag {
            display: inline-block;
            background-image: url(baidu/icons_5859e57.png);
            background-repeat: no-repeat;
            width: 14px;
            height: 17px;
            position: relative;
            top: 3px;

        }

        .footer-txt > .tag1 {
            background-position: -600px -96px;
            left: -1px;
        }
        .footer-txt > .tag2 {
            background-position: -623px -96px;
            left: -12px;
        }

        /*底部模块end*/



    </style>
</head>
<body>
    <!--导航模块start-->
    <div class="nav">
        <ul class="nav-list">
            <li><a href="#">新闻</a></li>
            <li><a href="#">hao123</a></li>
            <li><a href="#">地图</a></li>
            <li><a href="#">视频</a></li>
            <li><a href="#">贴吧</a></li>
            <li><a href="#">学术</a></li>
            <li><a href="#">登录</a></li>
            <li><a href="#">设置</a></li>
            <li class="more"><a href="#">更多产品</a></li>
        </ul>
        <!--清除浮动-->
        <div class="clearfix"></div>
    </div>
    <!--导航模块end-->
    <!--搜索框模块start-->
    <div class="search-box">
        <!--logo图片模块-->
        <div class="logo">
            <img width="270px" src="baidu/bd_logo1.png" alt="图片加载失败">
        </div>
        <!--搜索框和小相机-->
        <div class="search">
            <input type="text"> <!--输入框-->
            <i></i> <!--小相机-->
        </div>
        <!--提交按钮-->
        <input type="submit" value="百度一下">
    </div>
    <!--搜索框模块end-->

    <!--底部模块start-->
    <div class="footer">
        <!--二维码-->
        <div class="QRCode">
            <i></i> <!--二维码背景图片-->
            <p>百度</p>
        </div>
        <p class="footer-txt footer-first">
            <a href="#">把百度设为主页</a>
            <a href="#">关于百度About</a>
            <a href="#">About Baidu</a>
            <a href="#">百度推广</a>
        </p>
        <p class="footer-txt">
            <span>©2018 Baidu</span>
            <a href="#">使用百度前必读</a>
            <a href="#">意见反馈</a>
            <span>京ICP证030173号</span>
            <i class="tag tag1"></i>
            <a href="#" class="footer-last">京公网安备11000002000001号</a>
            <i class="tag tag2"></i>
        </p>
    </div>
    <!--底部模块end-->
</body>
</html>
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: JS CSS大屏demo指的是基于JavaScript和CSS技术实现的大屏幕展示效果。它通常用于展示一些需要较大图像和复杂数据的场景,如数据监测、游戏等。 在实现过程中,我们可以使用非常多样化的技术手段,如全屏滚动、动态数据可视化、3D动画等等。其中,全屏滚动是非常重要的一种技术,通过它,我们可以将大屏展示效果划分成多个页面,用户可以在这些页面之间自由切换。 除此之外,我们也可以应用一些第三方库,如d3.js、echarts.js、three.js等,它们提供了大量功能强大的插件,能够快速实现数据可视化、图形展示、动画效果等。 JS CSS大屏demo的应用非常广泛,如企业展示、新闻直播、大型会议等等。它可以提高用户对信息的理解和记忆能力,并且将信息传递的形式更加生动、形象,有利于信息的传输与传达。 ### 回答2: JS CSS 大屏 DEMO 是一种可以通过编写 JavaScript 和 CSS 代码来制作的大屏效果展示系统。通过这种方式可以在大屏幕上展示各种吸引人并有趣的信息,如数字数据、图表、动画、背景音乐等。 制作 JS CSS 大屏 DEMO 可以带来许多好处。首先,它可以使得你的信息更加生动形象,吸引更多观众的关注。其次,由于 JavaScript 和 CSS 及相关 Web 技术非常丰富,因此你可以创造出许多极富创意的特效和互动效果,带来更加良好的用户体验。最后,这种 DEMO 可以被广泛地应用在各大企业、展览、会议、活动等场合,展示公司或组织的形象和优势。 当然,在制作 JS CSS 大屏 DEMO 时也会遇到一些困难和挑战。例如,由于大屏幕的分辨率较高,因此对代码的优化要求极高,避免造成性能消耗和页面卡顿等问题。同时,大屏幕展示的活动场合较多,需要注重用户体验,充分考虑观众的视角和心理需求。另外,由于展示内容较为复杂,代码的维护、更新和升级也需要付出更多精力和时间。 总之,JS CSS 大屏 DEMO 是一种非常具有张力的创意展示方式,它可以为展示者带来非常出色的体验和效果。但是需要具备较高的技术水平和对用户需求的敏感度,才能创作出真正的好作品。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值