Giter Club home page Giter Club logo

Comments (5)

LIlGG avatar LIlGG commented on June 15, 2024

首页背景图上面有那个纹理,好好看,怎么实现的啊,我是个css初学者,麻烦告诉我下

实际上就是一个像素的图片。然后x轴y轴重复就可以了。。 没什么特别的 唯一需要注意的就是设置一下z-index,让它在最上方就行

from halo-theme-sakura.

liucan233 avatar liucan233 commented on June 15, 2024

像素照片??方便发我下吗,感觉像在做ppt,谢谢啦

from halo-theme-sakura.

LIlGG avatar LIlGG commented on June 15, 2024

grid.png

https://cdn.jsdelivr.net/gh/LIlGG/[email protected]/img/Sakura/images/grid.png

from halo-theme-sakura.

liucan233 avatar liucan233 commented on June 15, 2024

这样填几千个,不会影响性能吗,为啥不直接弄个更大分辨率的放到背景图片上面

from halo-theme-sakura.

LIlGG avatar LIlGG commented on June 15, 2024

这样填几千个,不会影响性能吗,为啥不直接弄个更大分辨率的放到背景图片上面

你弄一张大图也可以。 但我个人还是觉得小图比较适合。

  1. 就算重复十几万像素点 对于现代电脑来说也是可以忽略不计的
  2. 使用大图和使用小图,在渲染上来说是一样的。甚至更大分辨率的图像需要渲染的像素点更多
  3. 从网络请求一张大图,远比一张小图速度慢的多

不过现代浏览器,这两个差别也不会很大。实际上你用哪种方式都行。但如果用大图,网速慢的时候,可能会很突兀

from halo-theme-sakura.

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.