学习笔记CSS中九种居中方法
Posted 曾胖神父
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了学习笔记CSS中九种居中方法相关的知识,希望对你有一定的参考价值。
第一种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center1.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center1.html
第二种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center2.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center2.html
第三种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center3.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center3.html
第四种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center4.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center4.html
第五种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center5.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center5.html
第六种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center6.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center6.html
第七种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center7.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center7.html
第八种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center8.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center8.html
第九种居中方法
代码链接如下
https://github.com/zengpang/THE-ROAD-FOR-WEB/blob/master/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center9.html
效果链接如下
https://zengpang.github.io/THE-ROAD-FOR-WEB/%E5%89%8D%E7%AB%AF%E7%BB%83%E4%B9%A0(CSS)-Grid%E5%B8%83%E5%B1%80/Center9.html
以上是关于学习笔记CSS中九种居中方法的主要内容,如果未能解决你的问题,请参考以下文章