【web前端开发】HTML及CSS简单页面布局练习

案例一 网页课程

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例一 网页课程</title>
</head>
<body>
    <p>课程体系</p>
    <hr>
    <img src="week1/1001/1.png" height="200px">
    <img src="week1/1001/2.png" height="200px">
    <p>实战课程</p>
    <hr>
    <img src="week1/1001/3.png" height="200px">
    <img src="week1/1001/4.png" height="200px">
    <img src="week1/1001/5.png" height="200px">
</body>
</html>

案例二 商品详情页

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例二 商品详情</title>
</head>
<body>
    <h1>商品详情</h1>
    <hr>
    <p>产品参数:</p>
    <p>产品名称:HTML5+CSS3网页设计&nbsp;&nbsp;ISBN编号:9787302480723&nbsp;&nbsp;书名:HTML5+CSS3网页设计</p>
    <p>作者:刘玉红,蒲娟&nbsp;出版时间:2017-09&nbsp;&nbsp;定价:78.00元</p>
    <p>出版社名称:清华大学出版社&nbsp;&nbsp;开本:16开&nbsp;&nbsp;&nbsp;是否是套装:否</p>
    <hr>
    <img src="img.week1/1002/1.jpg" height="150px" width="800px">
    <img src="img.week1/1002/2.jpg" width="800px">

</body>
</html>

案例三:自定义视频

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频播放</title>
    <script>
        function p(){
            var v=document.getElementById("video1");
            if (v.paused) {
               v.play();} 
            else {
                v.pause();}         
        }
        function small(){
            var v=document.getElementById("video1");
            v.width = v.width * 0.5;
            v.height = v.height * 0.5;              
        }
        function big(){
            var v=document.getElementById("video1");
            v.width = v.width * 2;
            v.height = v.height *2;   
        }
        function same(){
            var v=document.getElementById("video1");
            v.width = 500;
            v.height = 300;   
        }
    </script>
    <style>
        .cont{
            margin: 0,auto;
            height: 300px;
            width: 500px;
        }
      
    </style>
</head>
<body>
    <div class="cont">
        <video id="video1" src="../img/video.mp4" width="500" height="300" ></video>
        <div>
            <center>
                <button onclick="p()">播放/暂停</button>
                <button onclick="big()">放大</button>
                <button onclick="small()">缩小</button>
                <button onclick="same()">普通</button>
            </center>
        </div>
    </div>
</body>
</html>

案例四:登录页面

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        
        }
        .c1{
            background-color: gainsboro;
            height: 40px;
            width: 300px;
        }
        .c2{
            background-color: gainsboro;
            height: 40px;
            width: 300px;
            margin-top: 20px;
        }
        form{
            background: url(../img/4001.png) no-repeat;
            height: 550px;
            width: 600px;
            position: absolute;
            background-color: gainsboro;
        }
        .all{
            position: relative;
            margin-top: 110px;
            margin-left: 110px;
        }
        [type="button"]{
            background-color: yellow;
            border: none;
            border-radius:12px;
            width: 70px;
            height: 40px;
            font-size: 20px;
            margin-top: 20px;
            margin-left: 30px;

        }
      
      
    </style>
</head>
<body>
    <form>
        <div class="all">
            <div class="c1">
                <img src="../img/user.png" height="30px" >
                <label><input style="border: 0px;background-color: gainsboro;height: 25px;" type="text" ></label>
            </div>
            <div class="c2">
                <img src="../img/pass.png" height="30px" >
                <label><input style="border: 0px;background-color: gainsboro;height: 25px;" type="text"></label>
            </div>
            <input type="button" value="登录">
            <a href="#" style="height: 10px;color: rgb(0, 179, 255);font-size: 15px;margin-left: 10px;">注册</a>
            <a href="#" style="height: 10px;color: rgb(0, 179, 255);font-size: 15px;margin-left: 10px;">忘记密码?</a>
        </div>
    </form>
</body>
</html>

案例五:祝福瓶 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>漂流瓶</title>
    <style>
        *{
            bottom: 0;
            padding: 0;
        }
        .cont{
            background: url(../img/bg.png);
            position:relative;
            width:1000px;
            height:600px;
            background-size:100%;
            background-position:bottom center;
            position:absolute;
        }
         form{
            background-color: papayawhip;
            border-radius: 25px;
            width: 700px;
            height: 350px;
            margin:70px 100px;
            border: 3px solid peachpuff;
            position:absolute;
        }
        
        .addr{
            background-color: #FFF8D7;
            height: 50px;
            width: 620px;
            margin-left: 32px;
        }
        .little{
            padding-top: 15px;
        }
        .end{
                
            margin-top: 30px;
            height: 50px;
            background-color: bisque;
            width: 700px;
            border-radius: 0 0 25px 25px;
        }
        .title{
          margin-top: 93px;
         margin-left: 400px;
        }

    </style>
</head>
<body>
    <div class="cont">
        <div class="title">
            <p style="float:left;margin-top:30px;height:30px;background-color: papayawhip;font-size: 15px;padding-top: 10px;">
                <span style="font-size: 20px;font-weight: bolder;">祝福瓶</span>
                <span>祝福瓶,准确无误的送去你的祝福</span>
            </p>
            <img src="../img/bot.png">
        </div>   
        <form>
            <p style="margin: 20px 10px;color:DarkOliveGreen;font-size: 18px;">&nbsp;&nbsp;&nbsp;祝福远在他乡的你幸福安康...</p>
            <div class="addr">
                <p style="float: left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我要祝福的他在:</p>
                <div class="little">
                    <select>
                        <option>吉林</option>
                        <option>安徽</option>
                    </select>
                    <select>
                        <option>咸阳</option>
                        <option>合肥</option>
                    </select>
                    <label><input type="text" value="请输入地址信息" style="color:gainsboro";></label>
                </div>
            </div>
            <textarea cols="90" rows="7" style="background-color:#FFFFDF;margin:20px 30px;"></textarea>
            <div class="end">
                <label ><input type="checkbox" style="margin: 20px;">转发到微博</label>
                <label ><input type="checkbox">同时扔给很多人</label>
                <input type="button" value="关闭" style="background-color: 	#FFF0AC;margin-left:250px;width: 70px;height: 30px;border: 2px solid 	#FFDCB9 ;">
                <input type="button" value="扔出去" style="background-color:skyblue;width: 70px;height: 30px;color: white;border-radius: 10px;border: 2px solid #2894FF;">
            </div>
            
        </form>
   </div>
</body>
</html>

案例六:商品评价

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品评价</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .cont{
            background: url(../img/4003/bg\ .png) no-repeat;
            width: 800px;
            height: 500px;
            margin: 20px auto;
        }
        .pic{
            margin: 9px 200px;
            width: 300px;
            height: 40px;
            padding-top:60px;
        }
        textarea{
            margin-left: 200px;
        }
        .button{
            margin-left: 200px;
            padding-left: 20px;
            background-color: aliceblue;
            height: 50px;
            line-height:50px;
            width: 570px;
        }
        .b1{
            height:25px;
            width: 70px;
            line-height:25px;
            font-size: 14px;
            font-weight: bolder;
            color: white;
            background-color: gainsboro;
            border: none;
        }
        .b2{
            height:25px;
            width: 70px;
            line-height:25px;
            font-size: 14px;
            color: white;
            background-color: orange;
            border: none;
        }
    </style>
</head>
<body>
    <div class="cont">
        <div class="pic">
            <label><input type="radio" name="judge" ><img src="../img/4003/red.png"></label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label><input type="radio" name="judge"><img src="../img/4003/yellow.png"></label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label><input type="radio" name="judge"><img src="../img/4003/black.png"></label>
        </div>
        <textarea rows="9" cols="83"></textarea>
        <div class="button">
            <button class="b1">我要晒图</button>
            <button class="b2">发表评价</button>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <label><input type="radio" name="choose">公开</label>
            <label><input type="radio" name="choose">匿名</label>
        </div>
    </div>
</body>
</html>

案例七:邮件发送

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发送邮件</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .button{
            float: left;
        }
        .cont{
            margin-top: 100px;
            margin-left:300px;
            background-color:skyblue;
            height: 270px;
            width: 700px;
            padding-left:40px;
            padding-top: 20px;
        }.theme{
            padding-left: 4px;
            padding-top: 10px;
        }
        .a1{
            margin-left: 80px;
            color: #000;
            font-size: 10px;
        }
        .a2{
            color: #000;
            font-size: 10px;
            margin-left: 0px;
        }
        a:link{
            text-decoration:none;
        }
        .main{
            padding-top:4px ;
        }
        .button{
           padding-left: 70px;
           font-size: 10px;
           font-weight: bolder;
        }
        button{
            background-color:#39c0d4;
            border:none;
            height: 30px;
            line-height: 30px;
            border-radius: 10%;
        }
        .choose{
            font-size: 10px;
            padding-top: 4px;
        }
    </style>
</head>
<body>
    <div class="cont">
        <div class="reciver">
            <span>收件人&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span>
            <textarea rows="1" cols="50"></textarea>
        </div>
        <div class="theme">
            <span>主&nbsp;&nbsp;题&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <textarea rows="1" cols="50"></textarea>
        </div>
        <a href="" class="a1">添加附件</a>
       &nbsp;&nbsp;
        <a href="" class="a2">在线文档</a>
        <div class="main">
            <span style="float: left;">正&nbsp;&nbsp;文&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <textarea rows="10" cols="83"></textarea>
        </div>
        <div class="button">
            <button>直接发送</button>
            <button>存草稿</button>
            <button>其它选项</button>
        </div>
        <div class="choose">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span>是否保存到已发送</span>&nbsp;&nbsp;&nbsp;
            <label><input type="radio" name="choose">是</label>
            <label><input type="radio" name="choose">否</label>
        </div>
    </div>
</body>
</html>

案例八:个人讲师

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>问卷调查</title>
    <style>
        
        *{
            padding: 0;
            margin: 0;
        }    
        form{
            background-image: url(../img/back.png);
            height: 500px;
            padding: 200px;
        }
        p{
            background-color:rgba(28, 164, 226, 0.614);
            color: white;
            font-size: 20px;
            margin-top: 20px;
        }
        label{
            margin-top:15px;
            padding-top: 1px;
            font-size: 12px;
            display: block;
            margin-left: 30px;
        }
       
    </style>
</head>
<body> 
        <form>
            <p>申请个人讲师</p>
            <label><input type="checkbox">为企业宣传</label>
            <label><input type="checkbox">上传文档至网站</label>
            <label><input type="checkbox">个人需要</label>
            <label><input type="checkbox">团购个人会员</label>
            <label><input type="checkbox">扩充自身网站内容</label>
            <label><input type="checkbox">借助明日科技技术,搭建企业内部平台</label>
       
            <p>您所在企业名称</p>
            <label>请输入您的回答 <input type="text"></label>
      
            <p>您所在单位的规模</p>
            <label><input type="radio" name="count">100人以内</label>
            <label><input type="radio" name="count">100-500人</label>
            <label><input type="radio" name="count">500人-1000人</label>
            <label><input type="radio" name="count">1000人-5000人</label>
            <label><input type="radio" name="count">5000人以上</label>
       
            <p>你是机构的负责人吗</p>
            <label><input type="radio" name="que">是</label>
            <label><input type="radio" name="count">不是</label>
       
    </form>
   
</body>
</html>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/381084.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

Linux中ps/kill/execl的使用

ps命令&#xff1a; ps -aus或者ps -ajx或者 ps -ef可以查看有哪些进程。加上 | grep "xxx" 可以查看名为”xxx"的进程。 ps -aus | grep "xxx" kill命令&#xff1a; kill -9 pid 杀死某个进程 kill -l 查看系统有哪些信号 execl函数&#…

在Ubuntu上部署Stable Video Diffusion动画制作

Stable Diffusion团队推出的开源模型Stable Video Diffusion&#xff0c;支持生成约3秒的视频&#xff0c;分辨率为5761024。通过测试视频展示了其令人瞩目的性能&#xff0c;SVD模型是一个生成图像到视频的扩散模型&#xff0c;通过对静止图像的条件化生成短视频。其特点主要包…

Vue源码系列讲解——虚拟DOM篇【三】(更新子节点)

1. 前言 在上一篇文章中&#xff0c;我们了解了Vue中的patch过程&#xff0c;即DOM-Diff算法。并且知道了在patch过程中基本会干三件事&#xff0c;分别是&#xff1a;创建节点&#xff0c;删除节点和更新节点。创建节点和删除节点都比较简单&#xff0c;而更新节点因为要处理…

使用cocos2d-console初始化一个项目

先下载好cocos2d-x的源码包 地址 https://www.cocos.com/cocos2dx-download 这里使用的版本是 自己的电脑要先装好python27 用python安装cocos2d-console 看到项目中有个setup.py的一个文件 python setup.py 用上面的命令执行一下。 如果执行正常的话回出现上面的图 然后…

教师如何找答案? #知识分享#职场发展

当今社会&#xff0c;随着信息技术的迅猛发展&#xff0c;大学生们在学习过程中面临着各种各样的困难和挑战。而在这些挑战中&#xff0c;面对繁重的作业和复杂的题目&#xff0c;大学生搜题软件应运而生 1.快解题 这是一个网站 是一款服务于职业考证的考试搜题软件,拥有几千…

CVE-2018-19518 漏洞复现

CVE-2018-19518 漏洞介绍 IMAP协议&#xff08;因特网消息访问协议&#xff09;它的主要作用是邮件客户端可以通过这种协议从邮件服务器上获取邮件的信息&#xff0c;下载邮件等。它运行在TCP/IP协议之上&#xff0c;使用的端口是143。在php中调用的是imap_open函数。 PHP 的…

特征工程:数据平衡

目录 一、前言 二、正文 Ⅰ.基于过采样算法 Ⅱ.基于欠采样算法 Ⅲ..基于过采样和欠采样的综合算法 三、结语 一、前言 大多数情况下&#xff0c;使用的数据集是不完美的&#xff0c;会出现各种各样的问题&#xff0c;尤其针对分类问题的时候&#xff0c;会出现类别不平衡的…

可达鸭二月月赛——基础赛第六场(周五)题解,这次四个题的题解都在这一篇文章内,满满干货,含有位运算的详细用法介绍。

姓名 王胤皓 T1 题解 T1 题面 T1 思路 样例输入就是骗人的&#xff0c;其实直接输出就可以了&#xff0c;输出 Hello 2024&#xff0c;注意&#xff0c;中间有一个空格&#xff01; T1 代码 #include<bits/stdc.h> using namespace std; #define ll long long int …

机器学习---学习与推断,近似推断、话题模型

1. 学习与推断 基于概率图模型定义的分布&#xff0c;能对目标变量的边际分布&#xff08;marginal distribution&#xff09;或某些可观测变量 为条件的条件分布进行推断。对概率图模型&#xff0c;还需确定具体分布的参数&#xff0c;称为参数估计或学习问 题&#xff0c;…

MATLAB环境下一维时间序列信号的同步压缩小波包变换

时频分析相较于目前的时域、频域信号处理方法在分析时变信号方面&#xff0c;其主要优势在于可以同时提供时域和频域等多域信号信息&#xff0c;并清晰的刻画了频率随时间的变化规律&#xff0c;已被广泛用于医学工程、地震、雷达、生物及机械等领域。 线性时频分析方法是将信…

第十七篇【传奇开心果系列】Python的OpenCV库技术点案例示例:自适应阈值二值化处理图像提取文字

传奇开心果短博文系列 系列短博文目录Python的OpenCV库技术点案例示例系列短博文目录前言一、自适应阈值二值化处理图像提取文字轮廓的初步示例代码:二、扩展思路介绍三、调整自适应阈值二值化的参数示例代码四、对二值化图像进行形态学操作示例代码五、使用轮廓特征进行筛选示…

Ubuntu22.04 gnome-builder gnome C 应用程序习练笔记(三)

八、ui窗体创建要点 .h文件定义(popwindowf.h)&#xff0c; TEST_TYPE_WINDOW宏是要创建的窗口样式。 #pragma once #include <gtk/gtk.h> G_BEGIN_DECLS #define TEST_TYPE_WINDOW (test_window_get_type()) G_DECLARE_FINAL_TYPE (TestWindow, test_window, TEST, WI…

java缓冲流

缓冲流相比较基本流效率更高&#xff0c;因为自带长度的8192缓冲区 缓冲流在io体系中的的位置&#xff1a; 字节缓冲流&#xff1a; 缓冲流的构造方法&#xff1a;输入、输出 **先通过一个练习了解字节缓冲流两个写法&#xff1a; //创建缓冲流对象 BufferedInputStream bis…

零基础学编程怎么入手,中文编程工具构件箱之渐变背景构件用法教程,系统化的编程视频教程上线

零基础学编程怎么入手&#xff0c;中文编程工具构件箱之渐变背景构件用法教程&#xff0c;系统化的编程视频教程上线 一、前言 今天给大家分享的中文编程开发语言工具资料如下&#xff1a; 编程入门视频教程链接 https://edu.csdn.net/course/detail/39036 编程工具及实例…

跟着cherno手搓游戏引擎【22】CameraController、Resize

前置&#xff1a; YOTO.h: #pragma once//用于YOTO APP#include "YOTO/Application.h" #include"YOTO/Layer.h" #include "YOTO/Log.h"#include"YOTO/Core/Timestep.h"#include"YOTO/Input.h" #include"YOTO/KeyCod…

070:vue+cesium: 利用canvas设置线性渐变色材质

第070个 点击查看专栏目录 本示例的目的是介绍如何在vue+cesium中设置线性渐变色的材质,这里使用canvas的辅助方法。 直接复制下面的 vue+cesium源代码,操作2分钟即可运行实现效果. 文章目录 示例效果配置方式示例源代码(共104行)专栏目标示例效果 配置方式 1)查看基础…

每日五道java面试题之java基础篇(三)

第一题. switch 是否能作⽤在 byte/long/String 上&#xff1f; Java5 以前 switch(expr)中&#xff0c;expr 只能是 byte、short、char、int。从 Java 5 开始&#xff0c;Java 中引⼊了枚举类型&#xff0c; expr 也可以是 enum 类型。从 Java 7 开始&#xff0c;expr 还可以…

504. Base 7(七进制数)

题目描述 给定一个整数 num&#xff0c;将其转化为 7 进制&#xff0c;并以字符串形式输出。 问题分析 按照二进制转换的方式进行转换即可 代码 char* convertToBase7(int num) {int count 0;char *x (char *)malloc(sizeof(char)*32);char *y (char *)malloc(sizeof(c…

HCIA--NAT实验

1. 划分网段&#xff0c;配置接口IP地址&#xff0c;内网启用OSPF协议&#xff0c;并配置一对一的NAT&#xff1a; AR1配置&#xff1a; [Huawei]int g0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.1.1.1 24 [Huawei-GigabitEthernet0/0/0]int g0/0/1 [Huawei-GigabitEther…

Kafka 入门介绍

目录 一. 前言 二. 使用场景 三. 分布式的流平台 四. Kafka 的基本术语 4.1. 主题和日志 &#xff08;Topic 和 Log&#xff09; 4.2. 分布式&#xff08;Distribution&#xff09; 4.3. 异地数据同步技术&#xff08;Geo-Replication&#xff09; 4.4. 生产者&#xf…
最新文章