Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 575 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 575 Bytes

style-plus

简体中文 | English

Enhanced style attribute, supporting CSS nesting syntax This means that you can write CSS selectors in inline styles

Example

<ul style="display: flex;li{flex: 1}">
  <li>1</li>
  <li>2</li>
  <li>3</li>
</ul>

Usage

<script src="https://unpkg.com/style-plus"></script>

or

import 'https://unpkg.com/style-plus/dist/index.esm.js'