GithubHelp home page GithubHelp logo

Comments (5)

laoshu133 avatar laoshu133 commented on September 26, 2024

不是很明白你意思,背景图只有当 CSS 内有引用,且满足配置条件的时候才会处理,应该不存在多余的情况

from grunt-css-sprite.

angela-huang avatar angela-huang commented on September 26, 2024

image
就是像这样我只要那个灰色星星作为背景,但其他地方的背景也一起读出来了,还有imagepath这个路径只能有一层吗?(..images/aa.png)我的项目是这样的(..images/public/aa.png)然后就读不到路径了,是我哪里没写对吗?

from grunt-css-sprite.

laoshu133 avatar laoshu133 commented on September 26, 2024

背景图会自动拼合,所以需要你保证容器大小 <= 雪碧图大小;
grunt-css-sprite 不适用于大容器 + padding 等背景,不适用于背景平铺

from grunt-css-sprite.

angela-huang avatar angela-huang commented on September 26, 2024

嗯,了解叻。谢谢咯~那在适用的情况下对图片路径有要求吗?就是之前我问的第二个问题,如果我把图片直接放在一个文件夹下就可以,但如果我在一个文件夹下再分几个文件夹就调试不出来了

from grunt-css-sprite.

laoshu133 avatar laoshu133 commented on September 26, 2024

可以的,检查下路径对不对,是不是最版本

from grunt-css-sprite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.