💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
~~~ yarn add styled-components ~~~ ### 1.createGlobalStyle创建全局样式 ~~~ //global.js import { createGlobalStyle } from "styled-components"; export const GlobalStyle = createGlobalStyle` html { color: red; } `; ~~~ ### 2.使用 ~~~ import React, { Component } from "react"; import { GlobalStyle } from "../style/style.js"; class App extends Component { render() { return ( <div> <GlobalStyle /> <div>hello world</div> </div> ); } } export default App; ~~~ 3.安装reset.css ~~~ https://meyerweb.com/eric/tools/css/reset/ ~~~