css テキストを上下左右中央寄せ

(参考サイト)<br/> https://qiita.com/Shinji-m/items/69a392685699f3ba95fb

style.css
.hoge {
 display: -webkit-flex;
 display: flex;
 -webkit-align-items: center; /* 縦方向中央揃え(Safari用) */
 align-items: center; /* 縦方向中央揃え */
 -webkit-justify-content: center; /* 横方向中央揃え(Safari用) */
 justify-content: center; /* 横方向中央揃え */
}

css 错误修复和质量检查

QA
/*Freedom Blog Block on IE*/
[data-block-internal-id='blog_01'] .blog--freedom-clean.card{
  display: block;
  height: 50%;
}

css 三列css网格布局没有媒体查询

3-column-grid.css
/* first create grid container class in html
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Grid Layout</title>
	  <link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
    <link href="css/page.css" rel="stylesheet">
    <link href="css/grid.css" rel="stylesheet">
  </head>
  <body>
    <div class="grid">
      <div class="item">1</div>
      <div class="item">2</div>
      <div class="item">3</div>
      <div class="item">4</div>
      <div class="item">5</div>
      <div class="item">6</div>
      <div class="item">7</div>
      <div class="item">8</div>
    </div>
  </body>
</html> */

/* ===================================== 
   Grid Layout
======================================== */
.grid {
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: 100px 200px;
    grid-gap: 15px;
}

/* ===================================== 
   Page Styles
======================================== */

* {
	box-sizing: border-box;
}
body {
	font-size: 1.4em;
	font-family: 'Varela Round', sans-serif;
  font-weight: bold;
	color: #6e859c;
  padding: 0;
  margin: 0;
	background: #e8e9e9;
}
.grid {
  background: #fff;
  border-radius: 0.285em;
  box-shadow: 0 0.1em 0 0 rgba(0,0,0,0.1);
	margin: 45px auto;
}
.item {
  color: #fff;
  text-shadow: 0 2px 0 rgba(110,133,156,0.18);
  padding: 0.85em;
  background: #6e859c;
  border: solid 1px rgba(110,133,156,0.15);
  border-radius: 0.3em;
}
.item:nth-child(even) {
  background: #a5cee9;
}

css 3D菜单[HTML \ CSS]

3d-menu-css
<div class="container">
    <div class="row menu">
        <div class="col menu__item">
            <a href="#" class="menu__link" data-name="Главная">Главная</a>
        </div>
    </div>
</div>


.menu {
    list-style: none;
    margin: 50px auto;
    padding: 0;
    max-width: 600px;
    width: 100%;
    text-align: center;
    background-color: #fff;
    display: flex;
}

.menu__item {
    flex-basis: 20%;
}
.menu__link{
    font-size: 0;
    line-height: 26px;
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    background-color: #000;
    position: relative;
}
.menu__link::before {
    content: attr(data-name);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    background-color: blueviolet;
    transform: rotateX(90deg) translateY(46px);
    transform-origin: 50% 100%;
    transition-duration: 500ms;
    transition-property: transform;
}

.menu__link:hover::before {
    transform: rotateX(0deg) translateY(0);
}

.menu__link::after {
    content: attr(data-name);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    background-color: #000;
    transform: rotateX(0deg) translateY(0);
    transform-origin: 50% 0;
    transition-duration: 500ms;
    transition-property: transform;
}
.menu__link:hover::after {
    transform: rotateX(90deg) translateY(-46px);
}

css 开始部分颜色叠加

Start Section Color Overlay
/*-----------------[Start Section Color Overlay]----------------*/
.colorOverlay .et_parallax_bg:before, .colorOverlay:before {
  content:"";
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.6);
}
/*-----------------[End Section Color Overlay]----------------*/

css 重力形式样式(简单)

Gravity Forms Styles Simple
/*-----------------[Start Gravity Forms Styles]----------------*/

/* Submit Button */
body .gform_wrapper .gform_footer input.button, body .gform_wrapper .gform_page_footer input.button, body div.form_saved_message div.form_saved_message_emailform form input[type=submit] { 
    color: #ffffff!important;
    background: #15659f;
    border-width: 10px!important;
    border-color: #15659f;
    border-radius: 4px;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: bold!important;
    text-transform: uppercase!important;
}

/* Submit Button Hover */
body .gform_wrapper .gform_footer input.button:hover, body .gform_wrapper .gform_page_footer input.button:hover, body div.form_saved_message div.form_saved_message_emailform form input[type=submit]:hover 
{ 
    transition: all 300ms ease 0ms;
	transform: scale(1.06);
}

/* Text Fields */
body .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),body .gform_wrapper textarea.textarea,body div.form_saved_message div.form_saved_message_emailform form input[type=text]{
    background-color:#eee;
    border:none;
    border-radius:4px;
    color:#999;
    padding:16px;
}

/* Dropdown Fields */
body .gform_wrapper select{
    height:51px;
    color:#999;
    background:#eee;
    border:none
}
/*-----------------[End Gravity Forms Styles]----------------*/

css 宽高比css con padding

aspect-ratio
aspect ratio  | padding-top value
--------------|----------------------
    1:1       |       100%
    16:9      |       56.25%
    4:3       |       75%
    3:2       |       66.66%
    8:5       |       62.5%
    
elemenet {
    padding-top: %value;
}

css 在手机上更改徽标

Change Logo on Mobile
/*-----------------[Start Change Logo on Mobile]----------------*/

   @media only screen and (max-width: 981px) {
  /* Changes mobile logo to specified image */
  #logo {
    content: url("http://staging1.dreamcenter.org/wp-content/uploads/2017/08/dream-center-logo-dark.png");
  }
}

/*-----------------[End Change Logo on Mobile]----------------*/

css 删除菜单大纲

Remove Menu Outline
/*-----------------[Start Nav Menu Styles]----------------*/

a:focus {
    outline: none;
}

/*-----------------[End Nav Menu Styles]----------------*/

css 移动设备上的自定义订单列

Custom Order Columns on Mobile
/*-----------------[Start Custom Column Order]----------------*/

@media all and (max-width: 980px) {

.custom_row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
flex-wrap: wrap;
}
 
.first-on-mobile {
-webkit-order: 1;
order: 1;
}
 
.second-on-mobile {
-webkit-order: 2;
order: 2;
}
 
.third-on-mobile {
-webkit-order: 3;
order: 3;
}
 
.fourth-on-mobile {
-webkit-order: 4;
order: 4;
}
/*** add margin to last column ***/
.custom_row:last-child .et_pb_column:last-child {
margin-bottom: 30px;
}}


/*-----------------[End Custom Column Order]----------------*/