1
圖像是328x328像素https://i.stack.imgur.com/fpKuw.jpg?s=328&g=1CSS背景附件固定裁剪圖像
我的div的寬度是984px(328x3)。
出於某種原因,當我用fixed
的背景附件它剪輯的圖像,但是當默認值scroll
使用影像是完美的。爲什麼是這樣?
不僅它被剪切,而且當我調整窗口大小以顯示圖像消失時!
.test {
\t background-color: cyan;
\t height: 1720px;
\t width: 984px;
\t background-image: url(https://i.stack.imgur.com/fpKuw.jpg?s=328&g=1);
\t background-repeat: no-repeat;
background-position: right top;
background-attachment: fixed;
}
<div class='test'></div>