关于RSS的输出格式, 一直很有争议, 如是否全文输出以及网页格式化. 我一起是全文输出的, 可能是因为我没内容写的原因, 所以每篇都很短. 偶儿有几篇看起来很长的, 却是一些SQL或程序代码, 为了更好地显示本站的代码, 请定义一个用等宽字体的prefont样式. 如下所示:
.prefont
{
font-family: "Courier New", Courier, mono;
font-size: 12px;
font-weight: normal;
letter-spacing: normal;
word-spacing: normal;
background-color: #efefef;
background: #efefef;
margin-left: 30px;
margin-right: 15px;
margin-top: 10px;
margin-bottom: 10px;
}
因为这些SQL或代码都没有放在pre标记中, 所以形成了这个问题, 但加了这段css后应当很整齐了.
谢谢!