< ! - 开始:图片 - > < img src =http://www.hds.com/go/invite/std/images/banner-innovate.jpgalt =PHitachi Email Headerclass =img-width> <! - 打印标题结束 - > <! - 开始:日期横幅 - > <! - 时事通讯标题 日期 - > <! - 结束:日期横幅 - > <! - < c:set var =createdxmlns:c =#unknown> < cq:text property =jcr:createdxmlns:cq =#unknown> < c:set var =createdByxmlns:c =#unknown> < cq:text property =jcr:createdByxmlns:cq =#unknown> < c:set var =lastModifiedvalue =$ {currentPage.lastModified.time}xmlns:c =#unknown> < c:set var =lastModifiedByvalue =$ {currentPage.lastModifiedBy}xmlns:c =#unknown> - > < c:set var =metadatavalue =$ {techTips}xmlns:c =#unknown> < c:set var = userTypevalue =$ {userType}xmlns:c =#unknown> < c:if test =$ {wcmEditMode}xmlns:c =#unknown> ; < c:set var =authorUserTypevalue =$ {param.authorUserType}> < c:if test =$ {empty authorUserType}> < c:set var =userTypevalue =$ {employee}> < c:选择xmlns:c =#unknown> < c:当test =$ {authorUserType eq'customer'}> < c:set var =userTypevalue =$ {entitled}> < c:当test =$ {authorUserType eq'partner'}> < c:set var =use rTypevalue =$ {servicePartnerConstant}> < c:when test =$ {authorUserType eq'employee'}> < c:set var =userTypevalue =$ {employee}> < ; c:如果test =$ {wcmEditMode}xmlns:c =#unknown> < form action =$ {currentPage.path} .html> < c :选择> < c:当test =$ {authorUserType eq'customer'}> < button type =submitname =authorUserType value =员工 class =btn btn-primary> < fmt:message key =techtipEmpPreviewxmlns:fmt =#unknown > < / button> < button type =submitname =authorUserTypevalue =partner class =btn btn-primary> < fmt:message key =techtipPartnerPreviewxmlns:fmt =#unknown& gt; < / button> < button type =submitname =authorUserTypevalue =customer class =btn btn-primarydisabled = true> < fmt:message key =techtipCustPreviewxmlns:fmt =#unknown> < /按钮> < c:当test =$ {authorUserType eq'partner'}> < button type = submitname =authorUserTypevalue =employee class =btn btn-primary> < fmt:message key =techtipEmpPreviewxmlns :fmt =#unknown> < / button> < button type =submitname =authorUserTypevalue =partner class =btn btn-primarydisabled = true> < fmt:message key =techtipPartnerPreviewxmlns:fmt =#unknown> < / button> < button type =submitname =authorUserTypevalue =customer class =btn btn-primary> < fmt:message key =techtipCustPreviewxmlns:fmt =#unknown> < / button> ; < c:否则> < button type =submitname =authorUserTypevalue =employee class =btn btn-primarydisabled = true> < fmt:message key =techtipEmpPreviewxmlns:fmt =#unknown> < / button> < button type =submitname =authorUserTypevalue =partner class =btn btn- primary> < fmt:message key =techtipPartnerPreviewxmlns:fmt =#unknown> < / button> < button type =submitname =authorUserTypevalue =customer class =btn btn-primary> < fmt :message key =techtipCustPreviewxmlns:fmt =#unknown> < / button> < / form> < c:选择xmlns:c =#unknown> < c:当test =$ {wcmEditMode&& empty properties.contentType}> < img src =/ libs / cq / ui / resources / 0.gifclass =cq-carousel-placeholder alt =Tech Tip ALertstitle =Tech Tip ALerts> < c:否则> < acl:out currenttype =$ {userType}xmlns:acl =#unknown> allowedTypes =$ {subject},$ {nonentitled},$ {salesPartnerConstant}> < cq:include script =customer.jspxmlns:cq =#unknown> < acl:out currenttype =$ {userType}xmlns:acl =#unknown> allowedTypes = $ {servicePartnerConstant}> < c:选择> < c:当test =$ {fn:contains(pagePath,'/ c /' }}> < cq:include script =customer.jspxmlns:cq =#unknown> < c:否则> < cq:include script =partner.jspxmlns:cq =#unknown> < acl:out currenttype =$ {userType}allowedtypes =$ {employee}xmlns:acl =#unknown > < c:选择> < c:当test =$ {fn:contains(pagePath,'/ p /')}> < cq:include script =partner.jspxmlns:cq =#unknown> < c:当test =$ {fn:contains(pagePath,'/ c /')}> < cq:include script =customer.jspxmlns:cq =#unknown > < c:否则> < cq:include script =employee.jspxmlns:cq =#未知> < script type =text / javascript> setTimeout(function(){ //分析代码 var events = new Array(); / *定义需要传递给SiteCatalyst的数据* / var data = new Object(); data ['prop50'] =$ {currentPage.title}; data ['eVar50'] =$ {currentPage.title}; //发送到sitecatalyst recordSitecatEvent(事件,数据,prop50); },1500); < / script> < c:if test =$ {pageProperties.showTimerLogs}xmlns:c =#unknown> < c:set var =end value =<%= new java.util.Date()%>> techtip detail.jsp - $ {end.time - start .time} <! - 打印页脚开始 - > < img src =http://www.hds.com/go/invite/customer-newsletter/images/innovate.jpgalt =Hitachi Innovativeclass = img-width> www.HDS.com | community.HDS.com < img class =hds-icon footerImagessrc =http://www.hds.com/go/invite/ std / images / facebook.jpg>< / img> < img class = hds-icon footerImagessrc =http://www.hds.com/go/invite/std/images/twitter.jpg>< / img> < img class =hds-icon footerImagessrc =http:/ /www.hds.com/go/invite/std/images/linkedin.jpg\"></img> < img class =hds-icon footerImagessrc =http://www.hds.com/go/invite/std/images /googlep.jpg\"></img> < img class =hds- icon footerImagessrc =http://www.hds.com/go/invite/std/images/icon5.jpg>< / img> < img class =hds-icon footerImagessrc =http://www.hds.com/go/invite/std/images/youtube .jpg>< / img> < img class =hds-icon footerImages src =http://www.hds.com/go/invite/std/images/blog.jpg>< / img> <! - 打印页脚结束 - > 解决方案 {currentPage.lastModified.time}xmlns:c =#unknown> < c:set var =lastModifiedByvalue = {currentPage.lastModifiedBy}xmlns:c =#unknown> - > < c: set var =metadatavalue = {techTips}xmlns:c =#unknown> < c:set var = userTypevalue = Hi,I am facing an issue with print option in firefox and IE9. When i am going into a print preview mode in firefox an extra blank page is being appended to the total pages containing content i.e., if i have content on a single page then firefox displays 2 pages. If the scaling is set to 96% then it fits to single page. The same case in IE9 it gives me 100 pages in print preview mode of which one page contains content and the other 99 pages are blank.CSS has been written in @media print {} section.@media print {html, body { height: auto; }a div.hds-icon {height: 30px;width: 30px;display:block;}.icon.float {position: absolute;top: 35%;right: 1%;}.footerImages{ width:21px; height:21px; margin-right:7px;} a[href]:after{ content:'' !important; }.white-wrapper{ margin:0 -15px;} .techbulletinPage{ display:block; margin-left:-15px; margin-right:-15px; } .techbulletinprintFooter{ display:block; margin-left:-15px; margin-right:-15px; } .leftNavigation.contentleftpar{ display:none; } .wrapper.container-fluid.fixed-width{ border:none; max-width:120%; width:101%; } .mainContent{ border-left:none; width:100%; } .col-xs-12.date-banner .col-md-3.col-xs-6{ display:none; } .date-banner { background-color: #F78E1E; border:aolid 3px red;}.innovative-logo { min-height: 20%; background-color: #dbdbdb;} .innovative-margin{padding:25px 0px 25px 35px;}/* @media (max-width:1191px){.innovative-margin{margin-bottom:0px;}} *//*Sizing for Images*/.img-width{width:100%;}/*Label updates*/.new-label{font-size:20px;color:#cc1f25;}.wrapper{ min-height:10% !important;}.new-wrapper{min-height:75%;margin:0px auto 0px;/* box-shadow: 10px 10px 10px #888888; */}.white-wrapper{min-height:10%;padding:10px 20px;margin:auto auto;}.wrapper.techbulletinPage .row.no-margin{padding:0;border-bottom:solid 15px #F78E1E; } .wrapper.techbulletinPage.withFooter .row.no-margin{padding:0;border:none; }.col-xs-12.date-banner{display:none; } /*Custom styling for logos*/ .main-logo{padding:20px;margin:10px 0px; } .right-logo{width:121px;height:60px;}.left-logo {width: 199px;height: 85px;}/* .p-l-20{padding-left:20px;}.p-r-20{padding-right:20px;} *//* .content-area{resize:none;border:0px;padding:30px !important;} */.innovative-logo{min-height:20%;background-color:#dbdbdb;} .wrapper{ background-color:#fff;}}JSP<img class="left-logo" src="http://www.hds.com/go/invite/customer-newsletter/images/hds-logo.gif"><img class="right-logo" src="http://www.hds.com/go/invite/customer-newsletter/images/hitachi-logo.gif"> <!--Start:Image--><img src="http://www.hds.com/go/invite/std/images/banner-innovate.jpg" alt="PHitachi Email Header" class="img-width"> <!-- End of print header --> <!--Start:Date Banner--><!--Newsletter TitleDate--> <!--End:Date Banner--><!--<c:set var="created" xmlns:c="#unknown"> <cq:text property="jcr:created" xmlns:cq="#unknown"><c:set var="createdBy" xmlns:c="#unknown"> <cq:text property="jcr:createdBy" xmlns:cq="#unknown"><c:set var="lastModified" value="${currentPage.lastModified.time}" xmlns:c="#unknown"><c:set var="lastModifiedBy" value="${currentPage.lastModifiedBy}" xmlns:c="#unknown"> --><c:set var="metadata" value="${techTips}" xmlns:c="#unknown"><c:set var="userType" value="${userType}" xmlns:c="#unknown"><c:if test="${wcmEditMode}" xmlns:c="#unknown"><c:set var="authorUserType" value="${param.authorUserType}"><c:if test="${empty authorUserType}"><c:set var="userType" value="${employee}"><c:choose xmlns:c="#unknown"><c:when test="${authorUserType eq 'customer'}"><c:set var="userType" value="${entitled}"><c:when test="${authorUserType eq 'partner'}"><c:set var="userType" value="${servicePartnerConstant}"><c:when test="${authorUserType eq 'employee'}"><c:set var="userType" value="${employee}"><c:if test="${wcmEditMode}" xmlns:c="#unknown"><form action="${currentPage.path}.html"><c:choose><c:when test="${authorUserType eq 'customer'}"><button type="submit" name="authorUserType" value="employee"class="btn btn-primary"><fmt:message key="techtipEmpPreview" xmlns:fmt="#unknown"></button><button type="submit" name="authorUserType" value="partner"class="btn btn-primary"><fmt:message key="techtipPartnerPreview" xmlns:fmt="#unknown"></button><button type="submit" name="authorUserType" value="customer"class="btn btn-primary" disabled=true><fmt:message key="techtipCustPreview" xmlns:fmt="#unknown"></button><c:when test="${authorUserType eq 'partner'}"><button type="submit" name="authorUserType" value="employee"class="btn btn-primary"><fmt:message key="techtipEmpPreview" xmlns:fmt="#unknown"></button><button type="submit" name="authorUserType" value="partner"class="btn btn-primary" disabled=true><fmt:message key="techtipPartnerPreview" xmlns:fmt="#unknown"></button><button type="submit" name="authorUserType" value="customer"class="btn btn-primary"><fmt:message key="techtipCustPreview" xmlns:fmt="#unknown"></button><c:otherwise><button type="submit" name="authorUserType" value="employee"class="btn btn-primary" disabled=true><fmt:message key="techtipEmpPreview" xmlns:fmt="#unknown"></button><button type="submit" name="authorUserType" value="partner"class="btn btn-primary"><fmt:message key="techtipPartnerPreview" xmlns:fmt="#unknown"></button><button type="submit" name="authorUserType" value="customer"class="btn btn-primary"><fmt:message key="techtipCustPreview" xmlns:fmt="#unknown"></button></form><c:choose xmlns:c="#unknown"><c:when test="${wcmEditMode && empty properties.contentType}"><img src="/libs/cq/ui/resources/0.gif" class="cq-carousel-placeholder"alt="Tech Tip ALerts" title="Tech Tip ALerts"><c:otherwise><acl:out currenttype="${userType}" xmlns:acl="#unknown">allowedTypes="${entitled},${nonentitled},${salesPartnerConstant}"><cq:include script="customer.jsp" xmlns:cq="#unknown"><acl:out currenttype="${userType}" xmlns:acl="#unknown">allowedTypes="${servicePartnerConstant}"><c:choose><c:when test="${fn:contains(pagePath, '/c/')}"><cq:include script="customer.jsp" xmlns:cq="#unknown"><c:otherwise><cq:include script="partner.jsp" xmlns:cq="#unknown"><acl:out currenttype="${userType}" allowedtypes="${employee}" xmlns:acl="#unknown"><c:choose><c:when test="${fn:contains(pagePath, '/p/')}"><cq:include script="partner.jsp" xmlns:cq="#unknown"><c:when test="${fn:contains(pagePath, '/c/')}"><cq:include script="customer.jsp" xmlns:cq="#unknown"><c:otherwise><cq:include script="employee.jsp" xmlns:cq="#unknown"><script type="text/javascript">setTimeout(function() {//analytics codevar events = new Array();/* Define the data needs to be passed to SiteCatalyst */var data = new Object();data['prop50'] = "${currentPage.title}";data['eVar50'] = "${currentPage.title}";//send to sitecatalystrecordSitecatEvent(events, data, "prop50");}, 1500);</script><c:if test="${pageProperties.showTimerLogs}" xmlns:c="#unknown"><c:set var="end" value="<%=new java.util.Date()%>">techtip detail.jsp - ${end.time - start.time}<!-- Start of print footer --><img src="http://www.hds.com/go/invite/customer-newsletter/images/innovate.jpg" alt="Hitachi Innovative" class="img-width">www.HDS.com |community.HDS.com<img class="hds-icon footerImages" src="http://www.hds.com/go/invite/std/images/facebook.jpg"></img><img class="hds-icon footerImages" src="http://www.hds.com/go/invite/std/images/twitter.jpg"></img><img class="hds-icon footerImages" src="http://www.hds.com/go/invite/std/images/linkedin.jpg"></img><img class="hds-icon footerImages" src="http://www.hds.com/go/invite/std/images/googlep.jpg"></img><img class="hds-icon footerImages" src="http://www.hds.com/go/invite/std/images/icon5.jpg"></img><img class="hds-icon footerImages" src="http://www.hds.com/go/invite/std/images/youtube.jpg"></img><img class="hds-icon footerImages" src="http://www.hds.com/go/invite/std/images/blog.jpg"></img><!-- End of print footer --> 解决方案 {currentPage.lastModified.time}" xmlns:c="#unknown"><c:set var="lastModifiedBy" value="{currentPage.lastModifiedBy}" xmlns:c="#unknown"> --><c:set var="metadata" value="{techTips}" xmlns:c="#unknown"><c:set var="userType" value=" 这篇关于firefox和IE 9中的打印模式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的..
09-06 12:20