我是用IE直接打印WEB页面的,因为打出来是自已看的,要求不高,可我的实际内容用A4纸应该打5,6页的,可现在只能打最前面的一页,请高手看看是怎么回事?
参考URL:http://www.888xsp.com/public/test.aspx
点“IE”的“文件”,“打印预览”,就知道是怎么回事了?我的内容很多,可那些图片只能打印最前面的一页,后面的内容都没了。
test.aspx:
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Test.aspx.cs" Inherits="FrameWork.web.Public.Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div id="main">
<div style="width: 650px;">
<div style="text-align: center; width: 650px;">
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div style="width: 162px; height: 160px; float: left;">
<img src='<%# Eval("ItemImgUrl") %>'
alt="" style="border: 0; height: 110px;" />
</div>
</ItemTemplate>
</asp:Repeater>
</div>
</div>
</div>
</form>
</body>
</html>test.aspx.cs 中就是 repeater1.databind();不知是怎么回事,
我试过如果将<div style="width: 162px; height: 160px; float: left;"> 中的float:left; 去了,每行只有一个图片的话,就可以全部打印出来,见:
http://www.888xsp.com/public/test1.aspx
可这不是我想要的效果。
参考URL:http://www.888xsp.com/public/test.aspx
点“IE”的“文件”,“打印预览”,就知道是怎么回事了?我的内容很多,可那些图片只能打印最前面的一页,后面的内容都没了。
test.aspx:
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Test.aspx.cs" Inherits="FrameWork.web.Public.Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div id="main">
<div style="width: 650px;">
<div style="text-align: center; width: 650px;">
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div style="width: 162px; height: 160px; float: left;">
<img src='<%# Eval("ItemImgUrl") %>'
alt="" style="border: 0; height: 110px;" />
</div>
</ItemTemplate>
</asp:Repeater>
</div>
</div>
</div>
</form>
</body>
</html>test.aspx.cs 中就是 repeater1.databind();不知是怎么回事,
我试过如果将<div style="width: 162px; height: 160px; float: left;"> 中的float:left; 去了,每行只有一个图片的话,就可以全部打印出来,见:
http://www.888xsp.com/public/test1.aspx
可这不是我想要的效果。
解决方案 »
- 在页面里加个flv的视频
- 为什么LinkButton会出现这样的情况?
- 跪求asp.net生成的随机数为什么都一样的解决方法
- vs2008怎么没有像2005一样的插入层?而且即使手动添加<div>......</div>也不能随意拖动......
- .net求助
- 高手进:服务器权限问题
- ASP.NET 2.0能否使用Reporting Service for SQL Server 2000
- 在datagrid中怎么根据条件设置行的背景色
- Win2000 专业版无法安装IIS
- c#如果获取multipart/form-data的数据?
- VS2005配置 SqlDataSource 问题,急急急! 大家请帮帮忙!
- 给50分!!!!!!解决网页显示不了图片,也就是图片在管理员界面能显示,而在用户界面不能显示,急急,哪位高手能解决,我把前台源代码发上来
<form id="form1" runat="server">
<div id="main">
<div style="width: 650px;">
<div style="text-align: center; width: 650px;">
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div style="width: 162px; height: 160px; float: left;">
<img src=' <%# Eval("ItemImgUrl") %>'
alt="" style="border: 0; height: 110px;" />
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<div style="clear: left;"></div></div>
</div>
</form>
</body>
</html> 试一试添加上红色字体部分