📜  tailwind bg 图片 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:27.135000             🧑  作者: Mango

代码示例2
// tailwind.config.js
  module.exports = {
    theme: {
      extend: {
        backgroundImage: theme => ({
+         'hero-pattern': "url('/img/hero-pattern.svg')",
+         'footer-texture': "url('/img/footer-texture.png')",
        })
      }
    }
  }