在小u上发个试试

2012-09-11 19:50:52

下个安卓平台管理wp的应用,说是要更改/wp-admin/options-writing.php里的RPC,然后下了个ftp接着又下了个文本编辑器,然后悲剧的发现这个只是他喵的控制台的一个选项而已,下意识以为是要改php ╭∩╮(︶︿︶)╭∩╮ 测试而已 附上艳照三枚 image image image

We selected Asia/Chongqing for CST/8.0/no DST

2012-08-03 16:16:38

好久没打开旧博客,这一去竟然有了亮点
从源代码里看到的
Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in
估计服务器后台改动惊动了时光守护者,于是各种页面各种报错。
果断度娘然后把
<?php date_default_timezone_set("PRC"); ?>
丢到header.php里。
Victory!
 

爱情公寓3不是很给力啊

2012-08-02 20:39:24

刚刚看展博看桃花侠大战菊花怪于是用度娘◑▂◑桃花侠大战菊花怪 ed2k ◐▂◐ 然后就木有然后了,哎,我是用安卓的好孩子,晚上要回家充电。

jquery导致discuz按钮失效

2012-04-12 16:19:03

discuz里已经使用$所以直接把jquery带有$的代码丢到页面里面会出错误。
所以一定要在代码前加上jQuery.noConflict();然后将$替换成jQuery,这样才不会引起冲突。

显示文章内容

2012-03-30 11:05:48

按官方的说法是:Displays the contents of the current post. This tag must be within The_Loop.
所以哩必须在循环里使用,不像神马<?php bloginfo(’name’); ?>丢里就好使。
得酱婶的:
需求:
<section class="center">
<h2>我是文章标题</h2>
<article class="entry">
我是文章内容
</article>
</section>
然后
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!--判断是否有post,如果有请尽快出货吧,没有一会再说-->
<section class="center">
<h2><?php the_title(); ?></h2> <!--文章标题-->
<article class="entry">
<?php the_content(); ?> <!--文章内容-->
</article>
</section>
<?php endwhile; else: ?> <!--没有的话给个提示吧-->
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?> <!--循环完毕-->

wordpress模板标签

2012-03-30 10:31:35

模板标签

包含模板文件的标签(Include tags)博客信息标签(Blog info tags)列表及下拉列表的标签(Lists & Dropdown tags)登录/登出标签(Login/Logout tags)文章信息标签(Post tags)评论标签(Comment tags)时间及日期标签(Date and Time tags)分类标签(Category tags)作者信息标签(Author tags)文章 Tag 标签(Tag tags)编辑链接标签(Edit Link tags)固定链接标签(Permalink tags)链接管理标签(Links Manager tags)引用标签(Trackback tags)一般标签(General tags)地理标签(Geo tags)
自从 WordPress 1.5 以后地理功能已经从主程序中移除,成为一个插件功能,下列标签会出现在插件版本中。

用css来写首行缩进,让 ;玩蛋去

2012-03-27 10:05:00

      修改别人的代码是件非常不爽的事情,也是一个可以学到东西的好事。 刚刚再改学派的页面,发现有好多首行缩进居然用了&nbsp;。。。 在几周前还专门为table清理冗余,今天又遇到这个,难怪IE6的bug那么多,于是都成共性了。 上正题: 就一个属性
text-indent:2em;
几个em就缩进几个字,然后,然后就没了  

p标签里的div

2012-03-27 09:50:24

昨天去论坛看到一位童鞋提到这么一个问题
<html>
<head>
<title>关联样式选择器</title>
<style>
p { color:green; font-size:1cm }
p.one { color:red; font-size:2cm; }
div .one { color:yellow; font-size:3cm; background-color:red; }
</style>
</head>
<body>
<p class="one">这是被定义过的</p>
<p>这是没定义过的</p>
<div>
<div class="one">这是被定义过的</div>
</div>
</body>
</html>
为什么把div 换成P之后 就显示不出来了?谁能告诉我一下么?
俺也没遇到过,于是找了些资料,现学现卖给他
55U:
W3c的html4.0.1明确规定P标签是不能包含块元素的孩子的。 原文: The P element represents a paragraph. It cannot contain block-level elements 原文地址: http://www.w3.org/TR/html401/struct/text.html#edef-P 如果含有浏览器会解析成 <p></p> <div></div> <p></p>;
可以用chrome查看一下 另外p.one和p .one是不一样的,注意中间有个空格 p.one可以简写成.one p .one是指p元素下的子元素.one。
 

写一个很2的让div垂直居中的js

2012-03-22 14:56:55

需要让div垂直居中,不让用table,用margin还会出问题,尤其是在FuckIE6的时候。
写了一周的页面终于有时间写点js了,于是就搞了个很二的用来让div垂直居中的Js
<body>
<style type="text/css">
#center{ width:700px; height:100px; background-color:#333; margin:0px auto;}
</style>
<div id="center">
</div>
<script type="text/javascript">
function change(){
var winH=window.innerHeight;
var divH=document.getElementById("center").offsetHeight;
var FH=(winH-divH)/2;
document.getElementById("center").style.marginTop=FH+'px';}
window.onload=change;
window.onresize=change;
</script>
</body>

火狐11强悍的3Ddom功能

2012-03-14 16:24:20

和chrome一样, 审查元素然后在右下角点击3D(M)这里下载