我想在用例中的模态上显示一个弹出窗口。我无法在模式上隐藏或显示任何弹出窗口或任何其他div。没有为弹出窗口设置顶部和左侧位置。 我尝试过z-index,但是没有用。
CSS:
$(function(){
$("#button1).on('click',function(e){
$("#abc").modal('show');
});
$(document).on('click',function(e){
// getting mouse click positions left(x) and top(y).
$("#popupabc").css({position:'absolute',left:x,top:y});
$("#popupabc").show();
});
}
jQuery:
import openpyxl
wb = openpyxl.load_workbook("source_file.xlsx", data_only=True)
sheets = ['Sheet1', 'Sheet2', 'Sheet4', 'Sheet5']
for sheet in sheets:
for row in wb[sheet]:
# <do the necessary parsing operations here>
答案 0 :(得分:-1)
<script type="text/javascript">
function ShowPopup(title, body) {
$("#MyPopup .modal-title").html(title);
$("#MyPopup .modal-body").html(body);
$("#MyPopup").modal("show");
}
</script>
<style>
blink {
animation: blinker 0.6s linear infinite;
color: #1c87c9;
}
@keyframes blinker {
50% { opacity: 0; }
}
.blink-one {
animation: blinker-one 1s linear infinite;
}
@keyframes blinker-one {
0% { opacity: 0; }
}
.blink-two {
animation: blinker-two 1.4s linear infinite;
}
@keyframes blinker-two {
100% { opacity: 0; }
}
</style>
<div id="MyPopup" class="modal fade" role="dialog" style="margin-top: 236px;margin-left: 245px;width:500px">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
×</button>
<h4 class="modal-title">
<%--<img src="../../Images/banner.jpg" class=" img-responsive" style="width: 100%; height:450px">--%>
<blink>Here you can type any message which you want..!!</blink>
</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">
Close</button>
</div>
</div>
</div>
</div>
-这是在aspx.cs代码中添加的------ ClientScript.RegisterStartupScript(this.GetType(),“ Popup”,“ ShowPopup();”,true);