Skip to content

Enhance the style attribute to make CSS and HTML deeply integrated. 增强style属性,让css和html深度融合。

License

Notifications You must be signed in to change notification settings

Tofu-Xx/style-plus

Repository files navigation

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'

About

Enhance the style attribute to make CSS and HTML deeply integrated. 增强style属性,让css和html深度融合。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published