【问题标题】:How To Make Larger Background Images Repeat, Regardless Of Browser Size?无论浏览器大小如何,如何重复较大的背景图像?
【发布时间】:2011-06-02 14:56:38
【问题描述】:

我有一张 512x512 的图像,我想将其用作我想要平铺的图案。我可以让它只重复-x,因为图像非常大并且不会重复-y,是否有一组特定的代码我应该使用,例如位置:某物或溢出:某物。

非常感谢, 亚伦

【问题讨论】:

  • 听起来好像没有问题。你能澄清一下这个问题吗?
  • 你在使用 CSS 吗? XAML?纯 HTML?完全不同的东西?
  • 从“设计”重新标记为“网页设计”

标签: image web background repeat


【解决方案1】:

尝试这些的组合

repeat-x;
repeat-y;
repeat;
background-position:center;
background-position:left top;
background-position:left center;
background-position:left bottom;
background-position:right top;
background-position:right center;
background-position:right bottom;
background-position:center top;
background-position:center center;
background-position:50% 50%;
background-position:10px 200px;
background-position:center bottom

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-09-19
    • 1970-01-01
    • 2012-07-26
    • 1970-01-01
    • 2014-09-27
    • 1970-01-01
    • 2011-09-17
    • 1970-01-01
    相关资源
    最近更新 更多