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 &copy; 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 的页面制作的更多相关文章

  1. 一个基于React整套技术栈+Node.js的前端页面制作工具

    pagemaker是一个前端页面制作工具,方便产品,运营和视觉的同学迅速开发简单的前端页面,从而可以解放前端同学的工作量.此项目创意来自网易乐得内部项目nfop中的pagemaker项目.原来项目的前 ...

  2. 页面制作部分之PS切图

    页面制作部分之PS切图 <--本标签下,通过页面制作.页面架构.javascript程序设计.DOM编程艺术.产品前端架构五部分来分享总结笔记,总结笔记会陆续分享--> 网页设计在技术层面 ...

  3. 【干货】微信场景之H5页面制作免费工具大集合

    营销代有手段出,各领风骚数百天.要说现在哪些营销方式最能传播,屡屡刷爆朋友圈的H5页面肯定就是首当其冲的,提到H5页面,就立马想到"围住神经猫",上线微信朋友圈3天的时间便创造了用 ...

  4. 手机web页面制作时的注意事项

    一.手机页面的标准头规范 字符编码使用utf-:指定页面手机内存缓存中的存储时间段 device-width:通知浏览器使用设备的宽度作为可视区的宽度 initial-scale - 初始的缩放比例 ...

  5. 【html】页面制作规范文档

    每天都在写html/css/js代码,总结的一些页面制作的规范 文件命名规范 1) 文件目录.文件名称统一用小写的英文字母.数字.下划线组合,文件名要与表现的内容相近,不到万不得已不要以拼音作为名称, ...

  6. 易企秀 we+ Maka 兔展 四大H5页面制作工具

    H5这个由HTML5简化而来的词汇,正通过微信广泛传播.H5是集文字.图片.音乐.视频.链接等多种形式的展示页面,丰富的控件.灵活的动画特效.强大的交互应用和数据分析,高速低价的实现信息传播,非常适合 ...

  7. HTML5 页面制作工具

    https://www.zhihu.com/question/30087283 HTML5 页面制作工具 免费的基于 HTML 5 的 Web Apps 生成器工具网站     81 235 初页 制 ...

  8. 微信小程序教学第四章第一节(含视频):小程序中级实战教程:详情-页面制作

    详情 - 页面制作 本文配套视频地址: https://v.qq.com/x/page/o0555o20xjd.html 开始前请把 ch4-1 分支中的 code/ 目录导入微信开发工具 这一章节中 ...

  9. H5类似易企秀/编辑器/页面制作/开发/生成工具/软件/源码/授权

    代码地址如下:http://www.demodashi.com/demo/14960.html 项目简介 H5DS (HTML5 Design software) 这是一款基于WEB的 H5制作工具. ...

随机推荐

  1. Go 语言 切片的使用(增删改查)

    Go 语言 切片的使用(增删改查) 引言Golang 的数组是固定长度,可以容纳相同数据类型的元素的集合.但是当长度固定了,在使用的时候肯定是会带来一些限制,比如说:申请的长度太大会浪费内存,太小又不 ...

  2. li 与 li 之间有空白间隔是什么原因引起的,有什么解决办法

    li 与 li 之间有空白间隔是什么原因引起的,有什么解决办法 原因 浏览器会把inline元素间的空白字符(空格.换行.Tab等)渲染成一个空格.而为了美观,我们通常是一个 放在一行,这导致 换行后 ...

  3. Delete、truncate、drop都是删除语句,它们有什么分别?

    delete 属于DML语句,删除数据,保留表结构,需要commit,可以回滚,如果数据量大,很慢. truncate 属于DDL语句,删除所有数据,保留表结构,自动commit,不可以回滚,一次全部 ...

  4. 您使用了哪些 starter maven 依赖项?

    使用了下面的一些依赖项 spring-boot-starter-activemq spring-boot-starter-security 这有助于增加更少的依赖关系,并减少版本的冲突.

  5. 如何解决Ubuntu下的“E: Unable to correct problems, you have held broken packages.”的问题. aptitude

    今天安装build-essential时出现了以下问题,这属于包的依赖. 解决方案: 1,sudo apt-get install aptitude:完成aptitude命令安装 2,sudo apt ...

  6. i2c总线编码

    i2c总线编码 发送启动信号S 在同步时钟线SCL 为高电平时,数据线出现的由高到低的下降沿. 启动信号子程序STA 1 /************************************** ...

  7. (stm32f103学习总结)—初识stm32

    STM32分类 STM32的命名方法 怎样选择合适的MCU 一个原则:花最少的钱,做最多的事 在确定项目需求的情况下,一般按照下面的顺序来选择合适的MCU 如何分配原理图引脚 如何寺找引脚的功能说明 ...

  8. carsim的一些注意事项

    1.carsim导入simulink中运行的目录下最好有simfile.sim文件,可以再carsim_2016.1_date中找到(文件夹内最下端) 2.carsim导入simulink中如果显示下 ...

  9. javaweb图书管理系统之不同用户跳转不同页面

    关于分级自测题,我们知道该系统一共分为两个角色,一个是读者,一个是管理员,我们需要根据不同用户去到不同的页面,所以我们需要写一个登陆界面. 本文先写这个功能的实现,该功能主要在servlet里面实现. ...

  10. 文档声明(Doctype)和<!Doctype html>有何作用? 严格模式与混杂模式如何区分?它们有何意义?

    文档声明的作用: 文档声明是为了告诉浏览器,当前HTML文档使用什么版本的HTML来写的,这样浏览器才能按照声明的版本来正确的解析. <!doctype html> 的作用就是让浏览器进入 ...