一、背景图片
Html
<body class="bg"></body>
Css
.bg{
background:url(../img/背景.jpg) ;
/* 背景自适应 */
background-attachment: fixed;
background-repeat:no-repeat ;
background-size:100% 100%;
/* 背景透明度 */
/* background:transparent ; */
filter:alpha(opacity=80);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.7;
}
二、页内窗
HTML
<a href="index.html" target="frame">博客</a>
<iframe src="about:blank" frameborder="0" scrolling="yes" name="frame"></iframe>
Css
iframe{
width: 100%;
height: 870px;
}