在插件Text Template中使用:
<style type="text/css">
/*********Winty(wintys@gmail.com)用于Windows Live Writer打印的CSS**********/
body {
white-space:normal;
font-size:20px;
line-height:28px;
font-family:verdana,Arial,helvetica,sans-seriff;
}
/*标题*/
h3{
font-weight : bold;color:blue;
}
/*列举项*/
ul li{
list-style-type: square;
}
/*代码区*/
.mycode {
margin: 10px;
padding: 10px;
background: #DDEDFB;
border: 1px solid #428EDE;
text-align: left;
font-size:20px;
}
/*CSS强制打印分页:为图片不自动分页而设*/
.pageseparator{
font-size: 1px;
height: 1px;
clear: both;
page-break-before: always;
}
/*不需要打印的内容*/
@media print{
.donotprint{
display:none !important;
/*如果display:none无效,则使用下面的规则*/
position:absolute;
top:-10000px;
left:-10000px;
}
}
/*隐藏的版权信息*/
.wintyshiddencopyright{
color:white;
}
</style>
<!-- Insert PrintStyle First -->
<div class="pageseparator"> </div>
<!-- winty's copyright -->
<div name="wintyscopyright" style="border-width: 1px 0pt 0pt; border-top: 1px solid red; padding: 5px; margin-top: 5px;" class="donotprint">
<span style="color: #ff0000;">原创作品,转载请注明出处。<br />
作者:天堂露珠 (wintys@gmail.com)<br />
博客:http://www.blogjava.net/wintys</span>
</div>
<!-- winty's hidden copyright -->
<div name="wintyshiddencopyright" class="hiddencopyright donotprint">
作者:天堂露珠 (wintys@gmail.com) 博客:http://www.blogjava.net/wintys
</div>
<style type="text/css">
/*********Winty(wintys@gmail.com)用于Windows Live Writer打印的CSS**********/
body {
white-space:normal;
font-size:20px;
line-height:28px;
font-family:verdana,Arial,helvetica,sans-seriff;
}
/*标题*/
h3{
font-weight : bold;color:blue;
}
/*列举项*/
ul li{
list-style-type: square;
}
/*代码区*/
.mycode {
margin: 10px;
padding: 10px;
background: #DDEDFB;
border: 1px solid #428EDE;
text-align: left;
font-size:20px;
}
/*CSS强制打印分页:为图片不自动分页而设*/
.pageseparator{
font-size: 1px;
height: 1px;
clear: both;
page-break-before: always;
}
/*不需要打印的内容*/
@media print{
.donotprint{
display:none !important;
/*如果display:none无效,则使用下面的规则*/
position:absolute;
top:-10000px;
left:-10000px;
}
}
/*隐藏的版权信息*/
.wintyshiddencopyright{
color:white;
}
</style>
<!-- Insert PrintStyle First -->
<div class="pageseparator"> </div>
<!-- winty's copyright -->
<div name="wintyscopyright" style="border-width: 1px 0pt 0pt; border-top: 1px solid red; padding: 5px; margin-top: 5px;" class="donotprint">
<span style="color: #ff0000;">原创作品,转载请注明出处。<br />
作者:天堂露珠 (wintys@gmail.com)<br />
博客:http://www.blogjava.net/wintys</span>
</div>
<!-- winty's hidden copyright -->
<div name="wintyshiddencopyright" class="hiddencopyright donotprint">
作者:天堂露珠 (wintys@gmail.com) 博客:http://www.blogjava.net/wintys
</div>