Codex的CSS样式

0条评论

本文旨在为Codex提供一些实用的样式,以更方便用户查阅。要确保使用的CSS有效,一旦经Wiki管理员确认,它就会被普遍应用到Codex编辑中。

 

class="basic"

.basic { background: #f7f7f7; border: 1px solid #000; margin: 0; padding: 5px; width: 100%; }

 

class="important"

.important { background: #f7f7f7; border: 2px dashed #f00; margin: 0; padding: 5px; text-align: center; width: 100%; }

 

class="code"

.code { background: #ccccff; border: 1px dashed #000; margin: 0; padding: 5px; text-align: left; width: 100%; }


建议使用一种更好的方法来高亮这里的示例代码,它将使页面分成更多区域,这样编辑人员也更容易跟踪页面——即使用f7f7f7颜色。当然,这同时也会使内容可读性受到影响。
设置网页内容或执行过程时,我们会使用php, css 或 xhtml代码来编辑。至于代码是用统一颜色还是对不同部分使用不同颜色,我个人认为无需使用过多色彩,如果使用的颜色不止一种,就要认真考虑该如何搭配使用了。

 

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.