contact 和 footer 的页面制作
1. html 结构
<section id="contact">
<div class="contact-form bg-primary p-2">
<h2 class="m-heading">Contact Us</h2>
<p>如有疑问请填写以下信息联系我们!</p>
<form>
<div class="form-group">
<label for="name">姓名</label>
<input type="text" name="name" id="name" placeholder="情输入姓名">
</div>
<div class="form-group">
<label for="name">邮箱</label>
<input type="email" name="email" id="email" placeholder="情输入邮箱">
</div>
<div class="form-group">
<label for="message">反馈信息</label>
<textarea name="message" id="message" placeholder="情输入内容"></textarea>
</div>
</form>
<input type="submit" class="btn btn-dark">
</div>
<div class="contact-img"></div>
</section>
<!-- foter -->
<foter id="main-footer" class="bg-dark text-center py-1">
<div class="container">
<p>Copyright © 2021, 米修在线, All Right Reserved</p>
</div>
</foter>
2. css
/* rest */
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.4;
}
a {
text-decoration: none;
}
p {
margin: 0.75rem 0;
} /* utility classes */
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 2rem;
overflow: hidden;
}
.text-center {
text-align: center;
}
.bg-light {
background: #f4f4f4;
color: #333;
}
.bg-dark {
background: #333;
color: #fff;
}
.bg-primary {
background: #93cb52;
color: #fff;
}
.p-1 {
padding: 1.5rem;
}
.p-2 {
padding: 2rem;
}
.p-3 {
padding: 3rem;
}
.text-primary {
color: #32cb52;
}
.l-heading {
font-size: 4rem;
margin-bottom: 0.75rem;
line-height: 1.1;
}
.m-heading {
font-size: 2rem;
margin-bottom: 0.75rem;
line-height: 1.1;
}
.lead {
font-size: 1.3rem;
margin-bottom: 2rem;
}
.py-1 {
padding: 1.5rem 0;
}
.py-2 {
padding: 2rem 0;
}
.py-3 {
padding: 3rem 0;
}
.btn {
display: inline-block;
color: #fff;
background-color: #93cb52;
padding: 0.5rem 2rem;
border: none;
border-radius: 5px;
}
.btn:hover {
background-color: #7ab436;
}
.btn-dark {
background: #333;
color: #fff;
}
.list {
margin: 0.5rem 0;
list-style: none;
}
.list li {
padding: 0.5rem 0;
border-bottom: #444 dotted 1px;
}
/* navbar */
#navbar {
display: flex;
/* 两端对齐 */
justify-content: space-between;
background: #333;
color: #fff;
position: sticky;
top: 0;
z-index: 1;
padding: 1rem;
} #navbar ul {
display: flex;
list-style: none;
/* 以中心点进行对齐 */
align-items: center;
}
#navbar ul li a {
color: white;
padding: 0.75rem;
margin: 0 0.25rem;
}
#navbar ul li a:hover {
background: #93cb52;
border-radius: 5px;
} /* home */
#home {
background: url('../img/1.jpg') no-repeat center center/cover;
height: 100vh;
color: #ffffff;
position: relative;
}
#home .home-content {
display: flex;
/* 垂直方向排列 */
flex-direction: column;
/* 垂直居中 */
justify-content: center;
/* 水平居中 */
align-items: center;
text-align: center;
height: 100%;
padding: 0 2rem;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
background: rgba(0,0,0,0.4);
} /* section: what we do */
#what .items {
display: flex;
padding: 1rem;
}
#what .items .item {
flex: 1;
text-align: center;
}
#what .items .item i {
background: #93cb52;
padding: 1rem;
border-radius: 50%;
margin-bottom: 1rem;
} /* section : Who We Are */
#who {
display: flex;
}
#who div {
flex: 1;
flex-basis: 50%;
}
#who .who-img {
background: url('../img/2.jpg') no-repeat center center/cover;
}
/* section: clients */
#clients .items {
overflow: hidden;
display: flex;
justify-content: space-around;
}
#clients .items img {
display: block;
margin: 0 auto;
border-radius: 50%;
width: 100%;
height: 100%;
}
#clients .items div{
justify-content: space-around;
width: 100px;
height: 100px;
border-radius: 50%;
} /* section: contact */
#contact {
display: flex;
}
#contact .contact-form,
#contact .contact-img {
flex: 1;
}
#contact .contact-img {
background: url('../img/2.jpg') no-repeat center center/cover;
}
#contact .contact-form .from-group {
margin: 0.75rem;
}
#contact .contact-form label {
display: block;
}
#contact .contact-form input,
#contact .contact-form textarea {
width: 100%;
padding: 0.5rem;
}
contact 和 footer 的页面制作的更多相关文章
- 一个基于React整套技术栈+Node.js的前端页面制作工具
pagemaker是一个前端页面制作工具,方便产品,运营和视觉的同学迅速开发简单的前端页面,从而可以解放前端同学的工作量.此项目创意来自网易乐得内部项目nfop中的pagemaker项目.原来项目的前 ...
- 页面制作部分之PS切图
页面制作部分之PS切图 <--本标签下,通过页面制作.页面架构.javascript程序设计.DOM编程艺术.产品前端架构五部分来分享总结笔记,总结笔记会陆续分享--> 网页设计在技术层面 ...
- 【干货】微信场景之H5页面制作免费工具大集合
营销代有手段出,各领风骚数百天.要说现在哪些营销方式最能传播,屡屡刷爆朋友圈的H5页面肯定就是首当其冲的,提到H5页面,就立马想到"围住神经猫",上线微信朋友圈3天的时间便创造了用 ...
- 手机web页面制作时的注意事项
一.手机页面的标准头规范 字符编码使用utf-:指定页面手机内存缓存中的存储时间段 device-width:通知浏览器使用设备的宽度作为可视区的宽度 initial-scale - 初始的缩放比例 ...
- 【html】页面制作规范文档
每天都在写html/css/js代码,总结的一些页面制作的规范 文件命名规范 1) 文件目录.文件名称统一用小写的英文字母.数字.下划线组合,文件名要与表现的内容相近,不到万不得已不要以拼音作为名称, ...
- 易企秀 we+ Maka 兔展 四大H5页面制作工具
H5这个由HTML5简化而来的词汇,正通过微信广泛传播.H5是集文字.图片.音乐.视频.链接等多种形式的展示页面,丰富的控件.灵活的动画特效.强大的交互应用和数据分析,高速低价的实现信息传播,非常适合 ...
- HTML5 页面制作工具
https://www.zhihu.com/question/30087283 HTML5 页面制作工具 免费的基于 HTML 5 的 Web Apps 生成器工具网站 81 235 初页 制 ...
- 微信小程序教学第四章第一节(含视频):小程序中级实战教程:详情-页面制作
详情 - 页面制作 本文配套视频地址: https://v.qq.com/x/page/o0555o20xjd.html 开始前请把 ch4-1 分支中的 code/ 目录导入微信开发工具 这一章节中 ...
- H5类似易企秀/编辑器/页面制作/开发/生成工具/软件/源码/授权
代码地址如下:http://www.demodashi.com/demo/14960.html 项目简介 H5DS (HTML5 Design software) 这是一款基于WEB的 H5制作工具. ...
随机推荐
- python中文及符号检测工具带GUI界面
import tkinter import webbrowser import re #本程序是一个中文字符和中文检测工具 #中文字符自己添加,我只添加了一点 #输入字符串,点击检查文本即可判断有没有 ...
- Android BLE 蓝牙开发——扫码枪基于BLESSED
一.蓝牙模式HID与BLE 当扫码枪与手机连接时,通常采用的是蓝牙HID(Human Interface Device)模式.本质上是一个把扫码枪作为一个硬件键盘,按照键盘协议把扫码后的结果逐个输入到 ...
- 面试官:volatile关键字用过吧?说一下作用和实现吧
volatile 可见性的本质类似于CPU的缓存一致性问题,线程内部的副本类似于告诉缓存区 面试官:volatile关键字用过吧?说一下作用和实现吧 https://blog.csdn.net/ ...
- ArrayList如何实现插入的数据按自定义的方式有序存放?
编程思路是:实现一个类对ArrayList进行包装,当程序试图向ArrayList中放入数据时,程序将先检查该元素与ArrayList集合中其他元素的大小,然后将该元素插入到指定位置. class M ...
- Spring由哪些模块组成?
以下是Spring 框架的基本模块: Core module Bean module Context module Expression Language module JDBC module ORM ...
- Mybatis使用拦截器自定义审计处理
void test_save_1(@Param("relatedBookCategoryEntity") RelatedBookCategoryEntity relatedBook ...
- 什么是 Aspect?
aspect 由 pointcount 和 advice 组成, 它既包含了横切逻辑的定义, 也包 括了连接点的定义. Spring AOP 就是负责实施切面的框架, 它将切面所定义的横 切逻辑编织到 ...
- Redis 是单进程单线程的?
Redis 是单进程单线程的,redis 利用队列技术将并发访问变为串行访问,消 除了传统数据库串行控制的开销.
- IMWebConf 2017 官网彩蛋解谜
前言 IMWebConf 2017 ←这是官网 然后看到了这个: 所以就试了下,作为一个前端菜鸟,发现通关还挺简单的,不过每个方面的知识都涉及到一点,所以在这里总结一下. 下面进入正题. 第 0 关 ...
- H5扇形
使用H5 canvas绘制的可交互扇形 requestAnimationFrame() 现有动画实现方式的不足 setTimeout和setInterval都不十分精确.为它们传入的第二个参数,实际上 ...