css 玩背景附件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 玩背景附件相关的知识,希望对你有一定的参考价值。

{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
<p>Scroll the individual containers as well as
the page itself. Observe the differences</p>

<pre class="scroll">
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll<br>
	background-attachment: scroll
</pre>

<pre class="fixed">
	background-attachment: fixed<br>
	background-attachment: fixed<br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed <br>
	background-attachment: fixed

</pre>

<pre class="local">
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local <br>
	background-attachment: local

</pre>

MOAR content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
content<br>content<br>content<br>
/**
 * Playing with background-attachment
 */

pre {
	max-height: 150px;
	border: 1px solid silver;
	overflow: auto;
	background: url('http://placekitten.com/200/200');
	color: white;
	text-shadow: 0 -.1em .1em black;
}

.scroll { background-attachment: scroll; }

.fixed { background-attachment: fixed; }

.local { background-attachment: local; }

body { padding: 10% }

以上是关于css 玩背景附件的主要内容,如果未能解决你的问题,请参考以下文章

css 修复与固定背景附件相关的问题,干扰页面上的其他固定元素...创建新图层。链接到更多信息:h

CSS3渐变,就是这么玩

css3到底有多强大,文字还能这样玩?

带有视频背景的纯 CSS 视差效果

Css:菜单悬停创建自定义形状背景图像?(使用css的平行四边形)

今天玩一下python得邮件解析吧,查看邮件内容小儿科,我们下载邮件的附件