公共课-版心与布局流程

2023-10-31 18:50
文章标签 流程 布局 版心 公共课

本文主要是介绍公共课-版心与布局流程,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

文章目录

  • 1、版心
  • 2、布局流程
    • (1)一列固定宽度且居中
    • (2)两列左窄右型
    • (3)通栏平均分布型

1、版心

版心:是指网页中主体内容所在的区域

一般尺寸为: 960 980 1000 1200 1190

2、布局流程

由外到内,由大到小

(1)一列固定宽度且居中

image-20210410100958324

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8" /><title>一列固定宽度且居中</title><style>* {margin: 0;padding: 0;}.container {margin: auto;width: 1200px;}header,.banner,.main,footer {margin-top: 20px;border: 5px dashed #f00;background-color: green;text-align: center;font-size: 60px;font-weight: bold;}header {margin-top: 0;height: 150px;line-height: 150px;}.banner {height: 100px;line-height: 100px;}.main {height: 300px;line-height: 300px;}footer {height: 200px;line-height: 200px;}</style></head><body><div class="container"><header>header</header><section class="banner">banner</section><section class="main">main</section><footer>footer</footer></div></body>
</html>

(2)两列左窄右型

image-20210410102443125

<!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>.box {margin: auto;width: 1200px;}header,.banner,.main,footer {margin-top: 10px;border: 5px dashed red;background-color: green;text-align: center;font-size: 60px;}header {margin-top: 0;height: 150px;line-height: 150px;}.banner {height: 60px;line-height: 60px;}.main {height: 400px;line-height: 400px;border: 0;background-color: white;}footer {height: 200px;line-height: 200px;}.leftBox,.rightBox {float: left;border: 5px dashed red;background-color: green;height: 390px;}.leftBox {width: 400px;}.rightBox {float: right;width: 770px;}</style>
</head><body><div class="box"><header>top</header><section class="banner">banner</section><section class="main"><div class="leftBox">left</div><div class="rightBox">right</div></section><footer>footer</footer></div></html>

(3)通栏平均分布型

image-20210410110029141

<!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>header,footer,.banner,.mid1,.bottom1 {background-color: violet;border: 1px dotted black;text-align: center;}header {height: 50px;line-height: 50px;}footer {height: 100px;line-height: 100px;}.main {margin: 10px auto;width: 1200px;}.banner {height: 100px;line-height: 100px;}.main-middle {height: 80px;margin: 10px 0;}.main-bottom {height: 200px;}.mid1 {float: left;width: 290.5px;height: 78px;margin-left: 10px;}.midFrist {margin-left: 0px;}.bottom1 {float: left;margin-left: 10px;width: 290.5px;height: 198px;}.bottomFirst {margin-left: 0;}</style></head><body><header>top</header><div class="main"><section class="banner">banner</section><section class="main-middle"><div class="mid1 midFrist"></div><div class="mid1"></div><div class="mid1"></div><div class="mid1"></div></section><section class="main-bottom"><div class="bottom1 bottomFirst"></div><div class="bottom1"></div><div class="bottom1"></div><div class="bottom1"></div></section></div><footer>footer</footer></body>
</html>

这篇关于公共课-版心与布局流程的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



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

相关文章

SpringBoot整合Flowable实现工作流的详细流程

《SpringBoot整合Flowable实现工作流的详细流程》Flowable是一个使用Java编写的轻量级业务流程引擎,Flowable流程引擎可用于部署BPMN2.0流程定义,创建这些流程定义的... 目录1、流程引擎介绍2、创建项目3、画流程图4、开发接口4.1 Java 类梳理4.2 查看流程图4

java Long 与long之间的转换流程

《javaLong与long之间的转换流程》Long类提供了一些方法,用于在long和其他数据类型(如String)之间进行转换,本文将详细介绍如何在Java中实现Long和long之间的转换,感... 目录概述流程步骤1:将long转换为Long对象步骤2:将Longhttp://www.cppcns.c

spring-gateway filters添加自定义过滤器实现流程分析(可插拔)

《spring-gatewayfilters添加自定义过滤器实现流程分析(可插拔)》:本文主要介绍spring-gatewayfilters添加自定义过滤器实现流程分析(可插拔),本文通过实例图... 目录需求背景需求拆解设计流程及作用域逻辑处理代码逻辑需求背景公司要求,通过公司网络代理访问的请求需要做请

使用JavaConfig配置Spring的流程步骤

《使用JavaConfig配置Spring的流程步骤》JavaConfig是Spring框架提供的一种基于Java的配置方式,它通过使用@Configuration注解标记的类来替代传统的XML配置文... 目录一、什么是 JavaConfig?1. 核心注解2. 与 XML 配置的对比二、JavaConf

CSS3 布局样式及其应用举例

《CSS3布局样式及其应用举例》CSS3的布局特性为前端开发者提供了无限可能,无论是Flexbox的一维布局还是Grid的二维布局,它们都能够帮助开发者以更清晰、简洁的方式实现复杂的网页布局,本文给... 目录深入探讨 css3 布局样式及其应用引言一、CSS布局的历史与发展1.1 早期布局的局限性1.2

Java对接Dify API接口的完整流程

《Java对接DifyAPI接口的完整流程》Dify是一款AI应用开发平台,提供多种自然语言处理能力,通过调用Dify开放API,开发者可以快速集成智能对话、文本生成等功能到自己的Java应用中,本... 目录Java对接Dify API接口完整指南一、Dify API简介二、准备工作三、基础对接实现1.

html5的响应式布局的方法示例详解

《html5的响应式布局的方法示例详解》:本文主要介绍了HTML5中使用媒体查询和Flexbox进行响应式布局的方法,简要介绍了CSSGrid布局的基础知识和如何实现自动换行的网格布局,详细内容请阅读本文,希望能对你有所帮助... 一 使用媒体查询响应式布局        使用的参数@media这是常用的

将Java项目提交到云服务器的流程步骤

《将Java项目提交到云服务器的流程步骤》所谓将项目提交到云服务器即将你的项目打成一个jar包然后提交到云服务器即可,因此我们需要准备服务器环境为:Linux+JDK+MariDB(MySQL)+Gi... 目录1. 安装 jdk1.1 查看 jdk 版本1.2 下载 jdk2. 安装 mariadb(my

前端CSS Grid 布局示例详解

《前端CSSGrid布局示例详解》CSSGrid是一种二维布局系统,可以同时控制行和列,相比Flex(一维布局),更适合用在整体页面布局或复杂模块结构中,:本文主要介绍前端CSSGri... 目录css Grid 布局详解(通俗易懂版)一、概述二、基础概念三、创建 Grid 容器四、定义网格行和列五、设置行

Spring AI ectorStore的使用流程

《SpringAIectorStore的使用流程》SpringAI中的VectorStore是一种用于存储和检索高维向量数据的数据库或存储解决方案,它在AI应用中发挥着至关重要的作用,本文给大家介... 目录一、VectorStore的基本概念二、VectorStore的核心接口三、VectorStore的