这是点击时的效果:
这是期望的效果,我想让它可点击:
基本上我想要的是打开内容以显示iframe并允许他们使用设置。
Please help if anything possable as soon as you can to fix the Javascript coding
var content = document.getElementById("settingsBar");
var button = document.getElementById("show-more");
button.onclick = function() {
if (content.className == "drop") {
content.className = "";
} else {
content.className = "drop";
}
};
#settingsBar {
width: 100%;
position: fixed;
z-index: 1;
background-color: #000;
max-height: 56px;
overflow: hidden;
-webkit-transition: all 0.7s;
-moz-transition: all 0.7s;
transition: all 0.7s;
}
#settingsBar.drop {
max-height: 1000px;
color: #fff;
-webkit-transition: all 0.7s;
-moz-transition: all 0.7s;
transition: all 0.7s;
}
#show-more i {
padding-left: 48%;
padding-top: 15px;
color: #fff;
-webkit-transition: color 0.7s;
-moz-transition: color 0.7s;
transition: color 0.7s;
}
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<div id="settingsBar">
<a href="#" id="show-more"><i class="material-icons large">settings</i></a>
<br/>
<iframe src="http://www.pigigram.com/account_settings.php" scrolling="no" frameborder="0" width="100%"></iframe>
</div>