1.加上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;

height:200px; // for IE6

line-height: 1.2em;

}

2.文章加上CODE

<code>

.comment-body-author {

<br /> margin:0;<br /> padding:0 0 0 20px;<br /> background-color:#C0C0C0;<br />

}

</code>

效果

.comment-body-author {
margin:0;
padding:0 0 0 20px;
background-color:#C0C0C0;
}

文章轉貼來源:良人的大秘寶

http://klcintw4.blogspot.tw/2006/11/blog-post_03.html

arrow
arrow
    全站熱搜

    gcchiou 發表在 痞客邦 留言(0) 人氣()