在IE7或IE8中查看打印CSS [英] View print CSS in IE7 or IE8

查看:140
本文介绍了在IE7或IE8中查看打印CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试打印时元素定位有问题的网站(我有一个单独的print.css文件,链接元素由media =print属性链接)。这个问题只发生在IE7和IE8中。

I'm debugging a site that has problems with element positioning when printing (I have a separate print.css file linked by a link element with the media="print" attribute). This problem only occurs in IE7 and IE8.

我正在寻找的是一种使用打印介质类型查看页面的方法,但仍然使用IE8的开发人员工具可用于查看元素详细信息并实时编辑等。

What I'm looking for is a way to view the page using the print media type, but while still having IE8's developer tools available to view element details and edit in real-time, etc.

我正在寻找的功能类似于按媒体类型显示CSS功能Chris Pederick的Firefox开发人员扩展。 (但这个问题不会出现在firefox中,也不会出现在safari中,甚至不会出现在IE6中。)

The function I'm looking for would be similar to the "Display CSS by Media Type" feature in Chris Pederick's Web Developer Extension for Firefox. (But this problem doesn't occur in firefox...nor in safari, or even in IE6.)

推荐答案

我是什么我总是这样做,是否已禁用(注释掉屏幕样式表)并将media =print样式表转换为media =screen。我只知道如何打印一堆测试页。

What I have always done, is I have disabled (commented out the "screen" style sheet) and converted the media="print" style sheet to be media="screen". Only way I know how with out printing a bunch of test pages.

这篇关于在IE7或IE8中查看打印CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆