Bạn đăng bài như bình thường => đến đoạn nào bạn muốn chèn khung chứa code vào thì bạn bấm Enter để xuống dòng => Bấm vào thẻ "chỉnh sửa HTML" trên góc phải của trang đăng bài để chuyển qua mã HTML.
Sau đó bạn dán tất cả các code bên dưới
Sau đó bạn dán tất cả các code bên dưới
<div style="border-right:
gray 1px solid; padding-right: 4px; padding-left: 4px; font-size: 8pt;
border-top: gray 1px solid; padding-bottom: 4px; margin: 20px 0px
10px; overflow: auto; border-left: gray 1px solid; width: 97.5%;
cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px;
border-bottom: gray 1px solid; font-family: consolas, 'Courier
New', courier, monospace; background-color: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">nội dung bạn muốn nhập</pre>
</div>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">nội dung bạn muốn nhập</pre>
</div>
Nguồn : http://www.thuvien.khunglong.info/2011/09/tao-khung-chua-code-trong-bai-ang.html

0 nhận xét:
Đăng nhận xét