Archive for “ June, 2009 ”
05
Jun
Post on 09:54, June 5, 2009, by Sue Zhou
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
	margin:0;
	padding:0;
	border:0;
	outline:0;
	font-size:100%;
	vertical-align:baseline;
	background:transparent;}

body { line-height:1;}

ol, ul { list-style:none;}

blockquote, q {	quotes:none;}

/* remember to define focus styles! */
:focus { outline:0; }

/* remember to highlight inserts somehow! */
ins {	text-decoration:none;}
del {	text-decoration:line-through;}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse:collapse;
	border-spacing:0;
}

[......]

阅读全文

Category: 分享  Tags:  Leave a Comment
02
Jun
Post on 12:44, June 2, 2009, by Sue Zhou

Google之结果,解决在Wordpress贴代码时英文的单引号双引号被替换成中文的左右引号的问题。

修改/wp-includes/目录里的formatting.php文件,找到以下代码:(行57-60)

// static strings
$curl = str_replace($static_characters, $static_replacements, $curl);
// regular expressions
$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);

将以上未屏蔽的两行,也屏蔽掉,如下:

// static strings
// $curl = str_replace($static_characters, $static_replacements, $curl);
// regular expressions
// $curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);

保存修改即可。

[......]

阅读全文

Category: 分享  Tags:  One Comment