= array(); } $post['classname'] = 'post'; } function comment_format(&$post) { global $conf, $uid, $gid, $forumlist; if (empty($post)) return; $forum = $post['fid'] ? forum_read($post['fid']) : ''; $thread = well_thread_read_cache($post['tid']); if ($thread) { //$post['fid'] = $thread['fid']; $post['closed'] = $thread['closed']; $post['subject'] = $thread['subject']; $post['url'] = $thread['url']; } else { $post['closed'] = 0; $post['subject'] = lang('thread_not_exists'); $post['url'] = ''; } $post['create_date_fmt'] = humandate($post['create_date']); //$post['message'] = stripslashes(htmlspecialchars_decode($post['message'])); $user = user_read_cache($post['uid']); $post['username'] = array_value($user, 'username'); $post['user_avatar_url'] = array_value($user, 'avatar_url'); $post['user'] = $user ? user_safe_info($user) : user_guest(); isset($post['floor']) || $post['floor'] = 0; // 权限判断 $post['allowupdate'] = 2 == array_value($forum, 'comment', 0) && ($uid == $post['uid'] || forum_access_mod($post['fid'], $gid, 'allowupdate')); $post['allowdelete'] = group_access($gid, 'allowuserdelete') && $uid == $post['uid'] || forum_access_mod($post['fid'], $gid, 'allowdelete'); $post['user_url'] = url('user-' . $post['uid'] . ($post['uid'] ? '' : '-' . $post['pid'])); if ($post['files'] > 0) { list($attachlist, $imagelist, $filelist) = well_attach_find_by_pid($post['pid']); // 使用图床 评论使用图床,mysql会过多,写死链接到内容是减轻mysql的过多的方法 if (2 == $conf['attach_on']) { foreach ($imagelist as $key => $attach) { $url = $conf['upload_url'] . 'website_attach/' . $attach['filename']; // 替换成图床 $post['message'] = FALSE !== strpos($post['message'], $url) && $attach['image_url'] ? str_replace($url, $attach['image_url'], $post['message']) : $post['message']; } } $post['filelist'] = $filelist; } else { $post['filelist'] = array(); } $post['classname'] = 'post'; } function comment_format_message(&$val) { global $conf; if (empty($val)) return; // 使用云储存 if (1 == $conf['attach_on'] && 1 == $val['attach_on']) { $val['message'] = str_replace('="upload/', '="' . file_path($val['attach_on']), $val['message']); } elseif (2 == $conf['attach_on'] && 2 == $val['attach_on']) { // 使用图床 list($attachlist, $imagelist, $filelist) = well_attach_find_by_tid($val['tid']); foreach ($imagelist as $key => $attach) { $url = $conf['upload_url'] . 'website_attach/' . $attach['filename']; // 替换成图床 $val['message'] = FALSE !== strpos($val['message'], $url) && $attach['image_url'] ? str_replace($url, $attach['image_url'], $val['message']) : $val['message']; } } else { $val['message'] = str_replace('="upload/', '="' . file_path($val['attach_on']), $val['message']); } //$val['message'] = stripslashes(htmlspecialchars_decode($val['message'])); } // 把内容中使用了云储存的附件链接替换掉 function comment_message_replace_url($pid, $message) { global $conf; if (0 == $conf['attach_on']) { $message = FALSE !== strpos($message, '="../upload/') ? str_replace('="../upload/', '="upload/', $message) : $message; $message = FALSE !== strpos($message, '="/upload/') ? str_replace('="/upload/', '="upload/', $message) : $message; } elseif (1 == $conf['attach_on']) { // 使用云储存 $message = str_replace('="' . $conf['cloud_url'] . 'upload/', '="upload/', $message); } elseif (2 == $conf['attach_on']) { // 使用图床 评论使用图床,mysql会过多,写死链接到内容是减轻mysql的过多的方法 list($attachlist, $imagelist, $filelist) = well_attach_find_by_pid($pid); foreach ($imagelist as $key => $attach) { $url = $conf['upload_url'] . 'website_attach/' . $attach['filename']; // 替换回相对链接 $message = $attach['image_url'] && FALSE !== strpos($message, $attach['image_url']) ? str_replace($attach['image_url'], $url, $message) : $message; } } return $message; } function comment_filter($val) { unset($val['userip']); return $val; } function comment_highlight_keyword($str, $k) { $r = str_ireplace($k, '' . $k . '', $str); return $r; } // //
function comment_message_format(&$s) { if (xn_strlen($s) < 100) return; $s = preg_replace('#.*?
#is', '', $s); $s = str_ireplace(array('
', '
', '
', '

', '', '', '', '' . ''), "\r\n", $s); $s = str_ireplace(array(' '), " ", $s); $s = strip_tags($s); $s = preg_replace('#[\r\n]+#', "\n", $s); $s = xn_substr(trim($s), 0, 100); $s = str_replace("\n", '
', $s); } // 对内容进行引用 function comment_quote($quotepid) { $quotepost = comment_read($quotepid); if (empty($quotepost)) return ''; $uid = $quotepost['uid']; $s = $quotepost['message']; $s = comment_brief($s, 100); $userhref = url('user-' . $uid); $user = user_read_cache($uid); $r = '
' . $user['username'] . ' ' . $s . '
'; return $r; } // 获取内容的简介 0: html, 1: txt; 2: markdown; 3: ubb function comment_brief($s, $len = 100) { $s = strip_tags($s); $s = htmlspecialchars($s); $more = xn_strlen($s) > $len ? ' ... ' : ''; $s = xn_substr($s, 0, $len) . $more; return $s; } ?>如何删除Word文档的空白页?推荐3种方法!
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

如何删除Word文档的空白页?推荐3种方法!

网站源码admin45浏览0评论

在使用Word编写文档时,空白页常常会无意中出现,影响文档的排版和整体美观。那怎么删除这些空白页呢?下面小编分享三种简单方法,一起来看看吧!

方法一:删除段落标记和分页符

通常,空白页是由多余的段落标记或分页符引起的。可以通过显示段落标记找到并删除这些元素。

1、在Word的【开始】选项卡中,点击【显示/隐藏段落标记】按钮,这样可以清楚地看到文档中所有不可见的段落标记。

2、选中这些段落标记或分页符,按 Delete 键或 Backspace 键将其删除。此时,空白页应该会自动消失。

 

方法二:调整表格

有时候,在Word文档里添加表格后,会出现多了一页空白页,这种情况,可以用以下方法来删除。

我们可以将整个表格向上提升一行,或者将尝试减小表格的行高。

1、选中表格,然后点击鼠标右键选择【表格属性】。

 

2、弹出对话框后,在【行】页面中,选中【指定高度】,然后将行高调整为较小的值,再单击【确定】按钮。这样,空白页就会自动删除。

 

方法三:使用查找替换功能

我们还可以使用查找替换功能来删除空白页,尤其在空白页比较多的时候。

1、在菜单选项卡中,点击【开始】,然后点击【编辑】选项卡列表中的【替换】。

2、弹出对话框后,在【替换】界面中,点击【特殊格式】。

 

3、在【特殊格式】的选项列表中点击【手动分页符】。

 

4、回到【替换】界面,可以看到【查找内容】一栏已经添加了“手动分页符”,【替换为】一栏留空,然后点击【全部替换】,替换为空白。完成后,word将删除所有空白页。

注意事项:

1、在进行操作前,建议先把Word文档复制一份副本,以防操作失误误改了原始文档。

2、如果按以上方法无法进行操作,可以看下是否Word文档被设置了“限制编辑”,导致文档被锁定,无法做任何变动。

如果确定了Word文档被设置了“限制编辑”,就需要先解除限制,才能进行改动。

解除的方法很简单,首先点击Word文档菜单选项卡【审阅】列表中的【限制编辑】;

在弹出的页面中点击下方【停止保护】选项,再次弹出对话框后,在密码栏里输入原本设置的限制密码,点击【确定】后,Word文档的“限制保护”就解除了。

要是不小心忘记了Word文档的“限制密码”怎么办?

这种情况,需要借助其他工具的帮助。比如小编使用的Word工具,可以不用密码直接去除Word文档的“限制密码”。

只需要点击工具里的【解除限制】模块,然后导入Word文档,即可一键解除。

 

 以上就是删除Word文档空白页的三种方法以及注意事项,希望对大家有所帮助! 

 

发布评论

评论列表(0)

  1. 暂无评论