创建文本在背景图像上的透明框
<!DOCTYPE html>
<html>
<head>
<style>
div.background
{
width: 400px;
height: 266px;
margin:15px;
background: url("fj.jpg") no-repeat; border: 1px solid black;
background-size:100% 100%;
}
div.transbox
{
width: 338px;
height: 204px;
margin:30px;
padding:0;
background-color: #ffffff;
border: 1px solid black;
filter:alpha(opacity=60);
opacity:0.6;
}
div.transbox p
{
margin: 30px 40px;
color: #000000;
font:bold 12px Verdana, Geneva, sans-serif;
line-height:1.5;
}
</style>
</head>
&