站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Sandbox
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
===代码例子=== This is what it looks like when using <tt>pre</tt> tags: 这是使用<tt>pre</tt>标签的时候,代码的样式: <pre><?php echo "Hello, world!\n";?></pre> <pre><?php echo "你好, 世界!\n";?></pre> This is what it looks like when using a space before a line of code to autoformat the <tt><pre></tt> tag: 在一行代码之前使用空格为<tt><pre></tt>标签自动设置格式的时候,这个标签的形式: <?php echo "Hello, world!\n";?> <?php echo "你好, 世界!\n";?> This is what it looks like in <tt>code</tt> tags: 这是代码在<tt>code</tt>标签中的形式: <code> <?php echo "Hello, world!\n";?> </code> <code> <?php echo "你好, 世界!\n";?> </code> Notice that the use of <code><code></code> does not put the code example in its own box but continues the sentence, even if there are single line breaks. The Codex requires a double line break to signify a "space" line break. 注意,使用code><code></code>并不能将代码例子放入框中,即使有单个的行分隔符,句子仍然会继续。Codex需要两个行分隔符来表示用"空格" 行分隔符。 When using code in text like <tt>index.php</tt>, if you use the <code><code></code> tag, it makes a <code>blue background behind the text that gives it a cluttered look and makes the code a little harder to see.</code> If you put the code in a <tt><tt></tt> tag, <tt>the blue background is gone and the type is monospaced and "code-like" and much easier to read and cleaner.</tt> Documentation in the WordPress Codex tends to use a lot of code within the text, so we prefer the use of <tt><tt></tt> over <code><code></code> for a cleaner look. 在文本,如<tt>index.php</tt>中使用代码的时候,如果你使用<code><code></code>标签,这个标签会使得文本出现<code>蓝色背景,使得文本看起来混乱,更不容易看到代码。</code> 如果你将代码放入<tt><tt></tt>标签,<tt>蓝色背景消失了,而且类型是monospaced 和"类似代码"的,更容易阅读,也更清晰。</tt>WordPress Codex中的文件似乎在文本内使用了许多代码,因此比起<code><code></code>,我们更想要使用<tt><tt></tt>,以得到更清晰的外观。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)