C1任务三

2023-12-15 03:32
文章标签 任务 c1

本文主要是介绍C1任务三,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

任务点一:

使用编辑器

结果:

 隔行换色以及添加按钮

源代码如下

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            .red{
                color: red;
            }
            
            table{
                border-collapse: collapse;
            }
            
            table tr:nth-child(2n-1){
                background-color: #ebebeb;
            }
        </style>
    </head>
    <body>
        <label class="red">CSDN能力认证中心</label>
        <table border="1">
            <tr>
                <td>C1</td>
                <td>见习工程师认证</td>
            </tr>
            <tr>
                <td>C4</td>
                <td>专项工程师认证</td>
            </tr>
            <tr>
                <td>C5</td>
                <td>全栈工程师认证</td>
            </tr>
        </table>
        <br />
        <button id="btn">我要考试</button>
    </body>
    <script>
        var btn = document.getElementById("btn");
        btn.onclick = function(){
            alert("信息");
        }
    </script>
</html>

效果图如下

点击按钮弹出消息

任务点二:

所见即所得式开发

任务点三:

css盒子模型

源代码如下:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            #box{
                width: 950px;
                height: 650px;
                border: 5px solid #aaaaaa;
                margin: 100px auto;
                background-color: #fcdd9c;
                color: aliceblue;
            }
            
            #left{
                float: left;
                width: 300px;
                height: 620px;
                margin: 10px;
            }
            
            #left div{
                border: 1px solid #AAAAAA;
                background-color: #c5d08e;
                margin: 10px;
                text-align: center;
            }
            
            #left-top{
                width: 300px;
                height: 200px;
                line-height: 200px;
            }
            
            #left-bottom{
                width: 300px;
                height: 400px;
                line-height: 400px;
            }
            
            #right-top{
                float: right;
                width: 600px;
                height: 250px;
                margin-top: 20px;
                margin-right: 10px;
                background-color: #C5D08E;
                border: 1px solid #AAAAAA;
                text-align: center;
                line-height: 250px;
            }
            
            #right-bottom{
                float: right;
                width: 600px;
                height: 350px;
                margin-right: 10px;
                margin-top: 10px;
                /* border: 1px solid #AAAAAA; */
            }
            
            #box4{
                float: left;
                width: 350px;
                height: 350px;
                background-color: #C5D08E;
                border: 1px solid #AAAAAA;
                text-align: center;
                line-height: 350px;
            }
            
            #box5{
                float: right;
                width: 240px;
                height: 190px;
                background-color: #C5D08E;
                border: 1px solid #AAAAAA;
                text-align: center;
                line-height: 190px;
            }
            
            #box6{
                float: right;
                width: 240px;
                height: 150px;
                background-color: #C5D08E;
                border: 1px solid #AAAAAA;
                text-align: center;
                line-height: 150px;
                margin-top: 10px;
            }
            
            #box7{
                position: absolute;
                width: 200px;
                height: 200px;
                margin-top: -230px;
                margin-left: 50px;
                background-color: #f3a464;
                line-height: 200px;
            }
            
            #box8{
                position: absolute;
                width: 200px;
                height: 200px;
                margin-top: -330px;
                margin-left: 350px;
                background-color: #f3a464;
                line-height: 200px;
            }
            
            #box9{
                width: 200px;
                height: 200px;
                margin-top: 530px;
                margin-left: 350px;
                background-color: #f3a464;
                z-index: 0;
                text-align: center;
            }
        </style>
    </head>
    <body>
        <div id="box">
            <div id="left">
                <div id="left-top">1</div>
                <div id="left-bottom">2</div>
            </div>
            <div id="right-top">
                3
                <div id="box7">7</div>
                <div id="box8">8</div>
            </div>
            <div id="right-bottom">
                <div id="box4">4</div>
                <div id="box5">5</div>
                <div id="box6">6</div>
            </div>
            <div id="box9">9</div>
        </div>
    </body>
</html>

效果图:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

这篇关于C1任务三的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/494955

相关文章

Spring定时任务之fixedRateString的实现示例

《Spring定时任务之fixedRateString的实现示例》本文主要介绍了Spring定时任务之fixedRateString的实现示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有... 目录从毫秒到 Duration:为何要改变?核心:Java.time.Duration.parse

Oracle Scheduler任务故障诊断方法实战指南

《OracleScheduler任务故障诊断方法实战指南》Oracle数据库作为企业级应用中最常用的关系型数据库管理系统之一,偶尔会遇到各种故障和问题,:本文主要介绍OracleSchedul... 目录前言一、故障场景:当定时任务突然“消失”二、基础环境诊断:搭建“全局视角”1. 数据库实例与PDB状态2

SpringBoot集成XXL-JOB实现任务管理全流程

《SpringBoot集成XXL-JOB实现任务管理全流程》XXL-JOB是一款轻量级分布式任务调度平台,功能丰富、界面简洁、易于扩展,本文介绍如何通过SpringBoot项目,使用RestTempl... 目录一、前言二、项目结构简述三、Maven 依赖四、Controller 代码详解五、Service

Linux系统管理与进程任务管理方式

《Linux系统管理与进程任务管理方式》本文系统讲解Linux管理核心技能,涵盖引导流程、服务控制(Systemd与GRUB2)、进程管理(前台/后台运行、工具使用)、计划任务(at/cron)及常用... 目录引言一、linux系统引导过程与服务控制1.1 系统引导的五个关键阶段1.2 GRUB2的进化优

Python Flask实现定时任务的不同方法详解

《PythonFlask实现定时任务的不同方法详解》在Flask中实现定时任务,最常用的方法是使用APScheduler库,本文将提供一个完整的解决方案,有需要的小伙伴可以跟随小编一起学习一下... 目录完js整实现方案代码解释1. 依赖安装2. 核心组件3. 任务类型4. 任务管理5. 持久化存储生产环境

Golang如何对cron进行二次封装实现指定时间执行定时任务

《Golang如何对cron进行二次封装实现指定时间执行定时任务》:本文主要介绍Golang如何对cron进行二次封装实现指定时间执行定时任务问题,具有很好的参考价值,希望对大家有所帮助,如有错误... 目录背景cron库下载代码示例【1】结构体定义【2】定时任务开启【3】使用示例【4】控制台输出总结背景

在Golang中实现定时任务的几种高效方法

《在Golang中实现定时任务的几种高效方法》本文将详细介绍在Golang中实现定时任务的几种高效方法,包括time包中的Ticker和Timer、第三方库cron的使用,以及基于channel和go... 目录背景介绍目的和范围预期读者文档结构概述术语表核心概念与联系故事引入核心概念解释核心概念之间的关系

springboot如何通过http动态操作xxl-job任务

《springboot如何通过http动态操作xxl-job任务》:本文主要介绍springboot如何通过http动态操作xxl-job任务的问题,具有很好的参考价值,希望对大家有所帮助,如有错... 目录springboot通过http动态操作xxl-job任务一、maven依赖二、配置文件三、xxl-

一文详解MySQL如何设置自动备份任务

《一文详解MySQL如何设置自动备份任务》设置自动备份任务可以确保你的数据库定期备份,防止数据丢失,下面我们就来详细介绍一下如何使用Bash脚本和Cron任务在Linux系统上设置MySQL数据库的自... 目录1. 编写备份脚本1.1 创建并编辑备份脚本1.2 给予脚本执行权限2. 设置 Cron 任务2

Django之定时任务django-crontab的实现

《Django之定时任务django-crontab的实现》Django可以使用第三方库如django-crontab来实现定时任务的调度,本文主要介绍了Django之定时任务django-cront... 目录crontab安装django-crontab注册应用定时时间格式定时时间示例设置定时任务@符号