is_attachment()判断当前页面是否为一个附件页面“图片或文件”。 原文:http://codex.wordpress.org/Function_Reference/is_attachment 翻译:黄聪@WP之魂