防止网页中的背景图片被另存为

防止网页中的背景图片被另存为,可以用下述办法:

先建A层,在样式里为A层设好背景图,然后在A层里设B层,并且把B层大小和A层设成一样,这样A层的背景就不能被另存为。

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>示例</title>
<style>

body{padding:0px; margin:0px;}
#content{width:1419px; height:3795px; background:url(img.jpg) no-repeat center center; margin:0px auto;}
#content .c_con{width:1419px; height:3795px;}

</style>
</head>

<body>
<div id="content">
<div class="c_con"></div>
</div>
</body>
</html>

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。