Skip to content

A Sea.js plugin for embedding style text in JavaScript code

License

Notifications You must be signed in to change notification settings

yazhouzou/seajs-style

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seajs-style

A Sea.js plugin for embedding style text in JavaScript code

Install

Install with spm:

$ spm install seajs/seajs-style

Usage

<script src="path/to/sea.js"></script>
<script src="path/to/seajs-style.js"></script>

<script>

// seajs has importStyle method after loading style plugin.
seajs.importStyle("body { margin: 0 }")

</script>

For more details please visit 中文文档

About

A Sea.js plugin for embedding style text in JavaScript code

Resources

License

Stars

Watchers

Forks

Packages

No packages published