我尝试设置z-index
值,div
但它没有做任何改变。看:
正如我们所看到的preview content
,它被div
标签中的按钮覆盖。具有这些按钮的z-index
值为。我尝试制作它并为显示预览的 div 制作它。但是没有变化?div
1
2,3
-1
它需要任何其他更改吗?
这是我的html代码:
<body style="height: 560px">
<div >
<form action="data.php" method="POST" onsubmit="showUser(this, event)">
<div style="z-index: 1; left: 420px; top: 40px; position: absolute; margin-top: 0px">
<label>Enter URL:</label><br/>
</div>
<div style=" width: 15%;margin: auto;margin-top: 1px;text-decoration: none;text-shadow: 0 1px 0 #fff; padding: 10px 20px; text-align: justify; ">
<!-- This div linkpreview shows div preview -->
<div class="linkPreview" style="z-index: 2;">
<div id="previewLoading"></div>
<div style="float: left;">
<textarea type="text" id="text" style="text-align: left; height:35px; width:512px; " placeholder="What's in your mind"/>
</textarea>
<div style="clear: both"></div>
</div>
<div id="preview" style="z-index: -1;">
<div id="previewImages">
<div id="previewImage"><img src="img/loader.gif" style="margin-left: 43%; margin-top: 39%;" ></img>
</div>
<input type="hidden" id="photoNumber" value="0" />
</div>
<div id="previewContent">
<div id="closePreview" title="Remove" ></div>
<div id="previewTitle"></div>
<div id="previewUrl"></div>
<div id="previewDescription"></div>
<div id="hiddenDescription"></div>
<div id="previewButtons" >
<div id="previewPreviousImg" class="buttonLeftDeactive" ></div><div id="previewNextImg" class="buttonRightDeactive" ></div>
<div class="photoNumbers" ></div>
<div class="chooseThumbnail">
Choose a thumbnail
</div>
</div>
<input type="checkbox" id="noThumb" class="noThumbCb" />
<div class="nT" >
<span id="noThumbDiv" >No thumbnail</span>
</div>
</div>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>
<div id="postPreview">
</div>
<div class="previewPostedList"></div>
</div>
</div>
<div style="z-index: 1; left: 420px; top: 110px; position: absolute; margin-top: 0px" onclick="myFunction(document.getElementById('t1').value)" > <button onclick="show2();"> Get Sentiment </button>
</div>
</form>
<div style="z-index: 1; left: 720px; top: 110px; position: absolute; margin-top: 0px">
<button onclick="makeAjaxCall(); return false;" value="View Graph" > View Graph </button>
</div>
</div>
<h4>
</body>