我有下面的代码表明background-repeat-x/y
由于某些原因,它在 FireFox 上不起作用。它只是删除了这些样式(但并不是说它们是不正确的+它们没有在某处被覆盖)。
当我尝试将这些风格结合在一起时(background
)它也将其删除。可以明白为什么会发生这种情况。还没找到类似的东西。
.myDiv {
height: 200px;
background-image: url(https://user-images.githubusercontent.com/37912316/38108463-2d5980dc-3395-11e8-948a-d7fd97647f86.png);
background-repeat-x: no-repeat;
background-repeat-y: repeat;
}
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="myDiv">
<p>Some text</p>
</div>
</body>
</html>
Use background-repeat: repeat-y;
反而。
background-repeat-x: no-repeat;
background-repeat-y: repeat;
在文档中找不到。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)