如何更好地在RSS中显示AnySQL的代码

    关于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后应当很整齐了.

    谢谢!

发表留言:

« Previous | Main | Next »

英语900句 | English 900

  • Do you know where I've put my glasses?
  • 你知道我把眼镜搁哪儿了吗?
  • Over there.
  • 在那边.
  • On the desk.
  • 在桌上.
  • Is this your pen? I found it under the desk.
  • 这是你的笔吗? 我在桌下捡的.
  • No. Mine is blue.
  • 不是. 我的是蓝的.