我有这个链接
<a href='' data-toggle='modal' data-target='#modalC'>Book Now</a>
Run Code Online (Sandbox Code Playgroud)
我有这个代码可以打开一个引导模式弹出窗口。
<div class="modal fade" id="modalC" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Cantidad reservas mensuales</h4>
</div>
<div class="modal-body" id="content">
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
出现在带有 id 内容的 div 中的所有内容都是出现在模态弹出窗口中的内容,所以我的问题是有没有办法在模态弹出窗口中显示我已经创建的 aspx 网络表单,而无需将所有 html 和代码隐藏复制到这个 div 中?
我听说过有关 window.open 的消息,但我认为事实并非如此,在此先感谢您。
我找到了一种方法来制作我自己的自定义文件上传控件,通过放置一个假控件,当我点击假的,我实际上是在下面的实际控件.
无论如何,浏览按钮的图像有点偏高.
我怎样才能降低一点?
这是js小提琴.
这是html和css:
<div>
<div class="fileinputs">
<input type="file" class="file" />
<div class="fakefile">
<input />
<img src="search.jpg" />
</div>
</div>
</div>
div.fileinputs {
position: relative;
}
div.fakefile {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
input.file {
position: relative;
text-align: right;
-moz-opacity:0;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;
}
Run Code Online (Sandbox Code Playgroud)