Giter VIP home page Giter VIP logo

oner-flexbox's Introduction

oner-flexbox

oner-flexbox 是一个flex布局的小样式库

设计理念概念

遵循首尾字母缩写原则

戳这里=>调试Demo

API

FBH

指定水平方向为容器的主轴

FBV

指定垂直方向为容器的主轴

FBAS

align-items: flex-start

FBAC

align-items: center

FBAE

align-items: flex-end

FBAST

align-items: stretch

FBAB

align-items: baseline

FBJS

justify-content: flex-start 伸缩项目向一行的起始位置靠齐

FBJC

justify-content: center 伸缩项目向一行的中间位置靠齐

FBJE

justify-content: flex-end 伸缩项目向一行的结束位置靠齐

FBJB

justify-content: space-between 伸缩项目会平均地分布在行里

FBJA

justify-content: space-around

FBAB

align-content: space-between

FBAA

align-content: space-around

align-content的其他相关值

align-items的基础上加  -M  (Multiline)

eg:

FBAS-M

align-content: flex-start

align-self的相关值

align-items的基础上加  -S  (Self)

FBAS-S

align-self: flex-start

FB1

flex: 1

FB2

flex: 2

………… ………… …………

FB10

flex: 10

oner-flexbox's People

Contributors

wuqiong7 avatar

Watchers

James Cloos avatar hniker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.