我经常发现一些这样的背景: http://knplabs.de/bundles/knpcorporate/images/bg-intro.png
整个页面是:http://knplabs.de
您如何称呼这种具有一种颜色的背景类型放置了一个漂亮的结构(如carpit)?
它们还有其他颜色(白色)吗?
问候
最佳答案
使用无缝图 block 是一种标准且非常基本的网页设计概念。您拍摄的图像在偏移时不会产生粗糙的边缘。这是一组不错的图 block :
使用它们也相当简单。
.someElement {background: url(path/to/image/bg.png);
我没有再传递任何声明,但如果你想使用不重复且存在于背景颜色前面的偏移背景图像,你可以这样做:
.someElement {background: red url(bg.png) no-repeat 20px 40px;}
关于html - 结构化 CSS 背景 : name?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11189082/