css CSS基本启动器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css CSS基本启动器相关的知识,希望对你有一定的参考价值。

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

:root {
  font-size: 1em;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  background-color: #f9f9f9;
  color: #222;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.4;
  margin: 0;
}

img, video {
  border: 0;
  height: auto;
  width: 100%;
}

/* Clearfix if using floats for layouts */
.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}
.clearfix::after {
  clear: both;
}

/* Spacing between bullets */
li:not(:last-child) {
  margin-bottom: 8px;
}

/* other things */
::selection {
  color: #000;
  background: #fbd404
}

/* lobotomized owl selector
targets any element that immediately follows any other element.
selects all elements on the page that aren’t the first child of their parent.
*/
body * + * {
  margin-top: 1.5em;
  /* You may need to apply margin-top: 0 to certain elements */
}

以上是关于css CSS基本启动器的主要内容,如果未能解决你的问题,请参考以下文章

在 PHP 中清理用户定义的 CSS

css CSS间距启动文件

CSS css起动器

CSS css启动内容

css的基本语法

css 基本按钮css适合基本HTML