Html透明文本输入框

MBF*_*MBF 6 html transparency input transparent

我有以下代码示例:

<style>
{ margin: 0; padding: 0; }
html, body {
	margin: 0;
	height: 100%;
	width: 100%;
    overflow:hidden;
	background-size: 100% 100%;
    background-repeat: no-repeat;
}
.input {
	margin: 0;
	padding-top:0px;
	padding-bottom:0px;
	padding-left:0px;
	padding-right:0px;
	opacity: 0.6;
	filter: alpha(opacity=60); /* For IE8 and earlier */
	background-color:#000;
  border:none;
  outline:none;
}
#input {
  opacity: 0.6;
	filter: alpha(opacity=60); /* For IE8 and earlier */
  border:none;
  outline:none;
  }
.bgDiv {
	margin: 0;
	padding-top:0px;
	padding-bottom:0px;
	padding-left:0px;
	padding-right:0px;
	z-index:1;
}
.mainDiv {
	margin: 0;
	padding-top:0px;
	padding-bottom:0px;
	padding-left:0px;
	padding-right:0px;
	z-index:3;
}
</style>
Run Code Online (Sandbox Code Playgroud)
<div id="bgDiv" name="bgDiv" class="bgDiv">
<img src="http://wallpapercave.com/wp/2u5OrmL.png" style="background-image: url('http://wallpapercave.com/wp/2u5OrmL.png'); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;">
</div>
<div id="mainDiv" name="mainDiv" class="mainDiv">
<form id="iform" name="iform" action="index.php" method="post">
<input type="text" maxleth="18" align="center" id="input" name="input" class="input" placeholder="placeholder" style="border:0;outline:none;width:100%;height:100%;font-size:98px;text-align: center;" autocomplete="off" autofocus>
</form>
</div>
Run Code Online (Sandbox Code Playgroud)

我试图使文本输入具有透明背景,因此用户可以看到页面的底层背景图像.而在同一时间,仍然可以看到框中输入的文字.

input[type=text] {
background: transparent;
border: none;
Run Code Online (Sandbox Code Playgroud)

} background-color:rgba(0,0,0,0);

没有一个似乎工作或有任何影响.请帮忙.

hub*_*man 7

尝试与

            background-color: transparent;
Run Code Online (Sandbox Code Playgroud)

            background-color: transparent;
Run Code Online (Sandbox Code Playgroud)
     input {
        background-color: transparent;

    }
    .WRAPPER {
        background-color: #000;
        height: 575px;
        width: 975px;
        background-image: url("http://wallpapercave.com/wp/2u5OrmL.png");
        top: auto;
        margin: -8px;
    }
    body {
        
        background-color: #000;
        background-image: url("http://wallpapercave.com/wp/2u5OrmL.png");
    }
    #email {
        background-color:rgba(0, 0, 0, 0);
        color:white;
        border: none;
        outline:none;
        height:30px;
        transition:height 1s;
        -webkit-transition:height 1s;
    }
    #email:focus {
      
        height:50px;
        font-size:16px;
    }
Run Code Online (Sandbox Code Playgroud)