加上CSS
CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(http://klcintw.images.googlepages.com/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}
在文章中將程式碼置於
<*/code>區塊中即可,如:
.comment-body-author {
margin:0;
padding:0 0 0 20px;
background-color:#C0C0C0;
}
1 条评论:
有朋友問了這個問題,就做個筆記分享一下。
发表评论