HTML

it2024-07-21  72

1. 页面总体的布局用<div>,小的规整的布局用<table>

  

2.

<input type="file" name="myFile" multiple="multiple" />

multiple属性ie9及以下版本不支持多文件上传。

3.iframe标签可以让两个页面合成一个页面。

4、Struts2中form表单提交后会有短暂的空白,如何解决?

<iframe style="display: none;width: 0;height: 0" name="upload_iframe"></iframe> <form target="upload_iframe"> </form>

  target 属性默认是_self, 如果target 为默认值,则提交后的新页面会在当前窗口显示,造成当前窗口短暂地白屏。在页面添加一个隐藏iframe,把target属性指定为iframe,所以上传文件 当前页面看不来变化

转载于:https://www.cnblogs.com/heyesp/p/4287882.html

最新回复(0)