2-9作业题图片上边表单的背景颜色怎么弄透明的啊
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{margin:0;padding:0;}
.header{width:100%;height:60px;background:#07cbc9}
.header img{float:left;padding-left:100px;}
.left{float:left;color:#ffffff;list-style:none;width:50px;line-height:60px;}
.xiao{float:right;}
.xiao ul{padding-right:50px;}
.clear{clear:both;}
.song{width:100%;height:100px;}
.song img{width:100%;height:500px;}
.toplaype{pasition:absolute;left:0;margin-top:-100px;width:100%;height:500px;background:#000;opacity:0.5;}
.zhuo{width:300px;height:20px;margin-bottom:10px;}
.yang{position:absolute;left:50%;top:250px;margin-left:-150px;margin-top:-30px;}
</style>
</head>
<body>
<div class="header">
<img src="images/logo.png" >
<div class="xiao">
<ul >
<li class="left">home</li>
<li class="left">home</li>
<li class="left">home</li>
<li class="left">home</li>
<li class="left">home</li>
<li class="left">home</li>
</ul>
</div>
</div>
<div>
<div class="song">
<img src="images/banner3.jpg">
</div>
<div class="toplaype"></div>
<div class="yang">
<div class="zhuo"><input tyle="text" name="username" size="35" maxlength="6" /></div>
<div class="zhuo"><input tyle="text" name="username" size="35" maxlength="6" /></div>
<div class="zhuo" ><input tyle="text" name="username" size="35" maxlength="6" /></div>
</div>
</div>
</body>
</html>13
收起
正在回答 回答被采纳积分+1
2回答
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36712 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星