开发者

problem printing a one page site

I just got this wordpress theme: http://meezio.pixelworkshop.fr/

Very nice, the problem is that since it's a one page template whenever I try to print the page I'm currently viewing it always prints the first page, I understand why the browser does this and it is working as intended, but is there a way to print exactly what开发者_JAVA百科s on the screen at the moment to request to print page?

BTW I changed the media="screen" to media="all" to all stylesheets so the styles are displaying correctly on the printed pages, but still shows me the first slide no matter what. If you go the the blog section or any category it works fine though, since these pages don't have the slide feature.

Does anyone know how could I do this?

Thanks all in advance.


See this question with a suggested solution

  • Give the body and the HTML tag 100% height
  • Give the body a "overflow: hidden"
  • Put the contents of your page into a 100% wide, 100% tall DIV with overflow:auto
  • Scroll to the desired position and click "print"

The important part is that there is no clear solution to this problem, but with a bit of trickery, you can try to accomplish what you need.

Additional reading: Restricting printing to selected HTML elements only or see here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜