我是用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
可这不是我想要的效果。
解决方案 »
- GridView连接数据库
- VS2005中頁面間的調用
- 三层中的数据访问层,你用dataset还是grove呢?【回复都有分】
- 网页上使用realplay控件
- 在datagrid中编辑时,应该如何控制哪个字段为"只读",及每个编辑框的样式
- 怎样弹出对话框
- .net 網站在IE10打開會自動加上一段亂碼
- WEB打印大讨论!
- 不好意思,一个老问题:将数据库中的文字读出显示时格式全乱了,如何处理?
- ASP.Net调用外部DLL文件中的函数的问题。(高分相送)
- 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> 试一试添加上红色字体部分