Word的上边距太小、页面之间距离太小

鲜血誓约定唯一

鲜血誓约定唯一

2016-04-01 20:44

只要你有一台电脑或者手机,都能关注图老师为大家精心推荐的Word的上边距太小、页面之间距离太小,手机电脑控们准备好了吗?一起看过来吧!

Word的上边距太小、页面之间距离太小

   如果您的Word文档由于设置不正确或使用了其它模板,导致文档的上边距非常小,甚至于,就连页面之间的间隔距离也相当小,就如下图一样!

Word的上边距太小、页面之间距离太小 图老师

  上边距已经没有了,页面的插入条已经顶着水平标尺来输入了,遇到这种情况,如果调整文档的页面,符合平时的操作习惯呢?

  一、调整页面设置

  您可以通过文件→页面设置,在打开的对话框中,调整上边距大一点,这样或许能解决。

  二、使用鼠标拖动

  将鼠标移动到上图的上边距的那位置,可以直接拖动上边距的大小,这样也能解决问题。

  三、特殊情况

  如果通过上述两种方法,并且已经操作正确,但是,还是无法让文档恢复到默认设置,那么,您得使用如下方法。

  执行菜单操作:视图→页眉和页脚,这样,会进入到页眉或页脚的编辑状态,如下图,能看到一个工具栏的出现。

电脑教程

  现在,什么也别做,点击工具栏上的关闭按钮就行了,经过这么简单的操作,文档的页面就能看到上边距了。

Wordpress主题和网站设计开发手册和资源

wordpress拥有很多的帮助开发插件,这里我们推荐如下免费插件:

Debug Bar: 任何开发者都可以使用这个插件,帮助你更简单的展示查询,缓存,PHP警告等等相关debug信息SyntaxHighlighter: 语法高亮插件,帮助你更好的阅读和编写代码CMS Tree Page View: 提供非常方便的服务。允许你按树状结构访问所有的页面WP Google Fonts: 帮助你更简单的使用web字体Broken Link Checker: 查看网站的死链或者重定向。Redirection: 帮助你管理301重定向,并且监控404错误,对于老域名迁移非常有帮助

wordpress的免费主题

如果你修改一些免费主题,比如创建子主题,可能对于你来说更加的实用,这里我们推荐一些发布过的wordpress主题,希望能够给大家带来便利!

Buttercream

Wordpress主题和网站设计开发手册和资源 图老师

Retinatulaoshi.com界面免费Wordpress主题

AyoShop – 响应式的eCommerce子模板

超棒的轻量级的wordpress主题 - Frank

免费的在线商品展示wordpress模板 - viper

艺术类个人作品集

免费的响应式Bootstrap模板 - Codester

如果你希望下载更多的免费wordpress模板,请点击这里免费wordpress模板

希望大家喜欢我们收集的资源,如果你有任何问题,请访问我们的极客社区留言!

WordPress无缝集成Google自定义搜索引擎

 

WordPress无缝集成Google自定义搜索引擎 图老师

前几天突然发现本站的搜索功能出现了点问题,索性直接更改为Google自定义搜索引擎。可在折腾搜索功能的时候经历了一些坎坷,所以整理了下内容分享给大家。

1、创建搜索引擎

登入https://accounts.google.com/ServiceLogin?continue=http: //www.google.com/cse/all&service=cprose&hl=zh-CN&gl=us& passive=true,若没有Google的帐号可去简单注册一个。登入后,我们开始创建一个定制Google搜索引擎,如下图:

#FormatImgID_0#

在输入框内输入要搜索的网站,这里需要注意的是索引整个网站还是只是文章部分。若是整个网站直接按照图中的提示填写即可,若是单纯搜索全部文章页面就可能会麻烦些。

若只想让Google搜索网站的文章页面,首先要确定WordPress固定链接的设置。

默认:http://www.domain.com/?p=123 在输入框中填入http://www.domain.com/?p=*

日期和名称型:http://www.domain.com/2013/03/19/sample-post/ 在输入框中填入http://www.domain.com/年份/月份/天/*

月份和名称型以此类推

数字型:http://www.domain.com/archives/123 在输入框中填入http://www.domain.com/archives/*

文章型:http://www.mywpku.com/sample-post/ 在输入框中填入http://www.mywpku.com/*/

伪静态HTML型:http://www.mywpku.com/sample-post.html 在输入框中填入http://www.mywpku.com/*.html

其余可以此类推。

可别忘了选择网站语言哦!完成后下一步吧。

#FormatImgID_1#

2、更改搜索外观 更改原主题文件

接下来可以根据需要来更改Google搜索页面的背景颜色,按钮颜色等等。不过最重要的一点是将布局更改为全宽:

#FormatImgID_2#

接下来我们对主题的搜索页面进行修改。在WordPress中输入一个搜索词,它将会显示出搜索页面,并按照搜索词来显示内容。不过现在我们需要变一下:显示出搜索页面后按照输入的内容来调用Google搜索引擎帮你搜索。

在主题目录中找到类似于search.php这样的文件,以我的主题来做个示例:

?php get_header(); ?

div id=content class=group

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/wjc/)

div id=content_main

?php if (have_posts()) : while (have_posts()) : the_post(); ?

?php $fmimg = get_post_meta($post-ID, fmimg_value, true); ?

article ?php post_class() ? id=post-& lt;?php the_ID(); ? data-posttime=?php the_time(‘Y-m- d H:i:s’); ?header

figure class=post_category?php the_category(‘ ’); ?/figure

a href=?php the_permalink(); ? rel=bookmark title=& lt;?php the_title(); ? target=‘_blank’& lt;?php has_post_thumbnail(); if ( has_post_thumbnail() ) { the_post_thumbnail(‘fmimg’); } elseif($fmimg) { ?img src=& lt;?php echo $fmimg; ? /?php } else { ?img src=& lt;?php echo catch_that_image(); ? /?php } ? /astrongh4 class=post_title

a href=?php the_permalink(); ? rel=bookmark title=& lt;?php the_title(); ? target=‘_blank’?php the_title(); ?& gt;/a/h4/strong

/header

div class=entry group

?php echo mb_strimwidth(strip_tags(apply_filters(‘the_content’, $post-post_content)), 0, 180, 。。。,utf-8); ?/div

footer class=post_meta

Written By

a href=& lt;?php echo get_author_posts_url(get_the_author_meta( ‘ID’ )); ? rel=nofollow& gt;?php echo the_author_meta( ‘display_name’ ); ?/a

span class=info-category-icon?php the_category(‘, ’) ?/span

span class=info-comment-icon& lt;?php comments_popup_link (‘沙发还在’,‘还有板凳’,‘%条评 论’); ? ?php edit_post_link(‘编辑本文’, ‘’, ‘’); ?/span

a href=?php the_permalink(); ? title=& lt;?php the_title(); ? class=more target=‘_blank’ img src=http://upload.chinaz.com/2013/0321/1363835608792.png/a

div class=clear/div

/footer

/article

?php endwhile;?

?php else : ?

article class=post

h2没有找到任何内容/h2

?php get_search_form(); ?

/article

?php endif; ?

div class=navigation group

div class=wp-pagenavi?php par_pagenavi(9); ?/div

/div

/div

?php get_sidebar(); ?

/div

?php get_footer(); ?

我将它删除至只剩下一个大概的结构:

?phpget_header();? div id="content"class="group"span style="line-height: 1.6em;"/span /div ?phpget_footer();?

去刚刚的自定义搜索引擎页面那获取代码吧,这是最后一步了。

#FormatImgID_3#

很显然普通的代码已经不能满足我们的需求了,下方点击获取V1代码。

将获得的代码与search.php合并:

(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/wjc/)

?phpget_header();?

div id=contentclass=group

div id='cse' style='width: 100%;'

Loading

/div

script src='//www.google.com/jsapi' type='text/javascript'/script

script type='text/javascript'google.load('search', '1', {language: 'zh-Hans', style: google.loader.themes.V2_DEFAULT});

google.setOnLoadCallback(function() {var customSearchOptions = {}; var orderByOptions = {}; orderByOptions[‘keys’] = [{label: ‘Relevance’, key: ‘’} , {label: ‘Date’, key: ‘date’}];

customSearchOptions[‘enableOrderBy’] = true; customSearchOptions[‘orderByOptions’] = orderByOptions; customSearchOptions[‘overlayResults’] = true;

var customSearchControl = new google.search.CustomSearchControl('002417144856058510941:uk_1aiwj0ok', customSearchOptions);

customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);var options = new google.search.DrawOptions();

options.setAutoComplete(true);customSearchControl.draw('cse', options);}, true);

/script

style type='text/css'.gsc-control-cse {

font-family:Arial,sans-serif;border-color:#FFFFFF;background-color:#FFFFFF;}

.gsc-control-cse .gsc-table-result {font-family:Arial,sans-serif;

}

input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus {border-color:#D9D9D9;

}

input.gsc-search-button, input.gsc-search-button:hover, input.gsc- search-button:focus {border-color:#666666;background- color:#CECECE;background-image:none;filter:none;}

.gsc-tabHeader.gsc-tabhInactive {border-color:#FF9900;background-color:#FFFFFF;}

.gsc-tabHeader.gsc-tabhActive {border-color:#E9E9E9;background-color:#E9E9E9;border-bottom-color:#FF9900}

.gsc-tabsArea {border-color:#FF9900;}

.gsc-webResult.gsc-result, .gsc-results .gsc-imageResult {border-color:#FFFFFF;background-color:#FFFFFF;}

.gsc-webResult.gsc-result:hover, .gsc-imageResult:hover {border-color:#FFFFFF;background-color:#FFFFFF;}

.gs-webResult.gs-result a.gs-title:link, .gs-webResult.gs- result a.gs-title:link b, .gs-imageResult a.gs-title:link, .gs- imageResult a.gs-title:link b {color:#0000CC;}

.gs-webResult.gs-result a.gs-title:visited, .gs-webResult.gs- result a.gs-title:visited b, .gs-imageResult a.gs-title:visited, .gs- imageResult a.gs-title:visited b {color:#0000CC;}

.gs-webResult.gs-result a.gs-title:hover, .gs-webResult.gs- result a.gs-title:hover b, .gs-imageResult a.gs-title:hover, .gs- imageResult a.gs-title:hover b {color:#0000CC;}

.gs-webResult.gs-result a.gs-title:active, .gs-webResult.gs- result a.gs-title:active b, .gs-imageResult a.gs-title:active, .gs- imageResult a.gs-title:active b {color:#0000CC;}

.gsc-cursor-page {color:#0000CC;}a.gsc-trailing-more-results:link {color:tulaoshi.com#0000CC;}

.gs-webResult .gs-snippet, .gs-imageResult .gs-snippet, .gs-fileFormatType {color:#000000;}

.gs-webResult div.gs-visibleUrl, .gs-imageResult div.gs- visibleUrl {color:#008000;}.gs-webResult div.gs-visibleUrl- short {color:#008000;}.gs-webResult div.gs-visibleUrl- short {display:none;}

.gs-webResult div.gs-visibleUrl-long {display:block;}.gs-promotion div.gs-visibleUrl-short {display:none;}

.gs-promotion div.gs-visibleUrl-long {display:block;}.gsc-cursor-box {border-color:#FFFFFF;}

.gsc-results .gsc-cursor-box .gsc-cursor-page {border-color:#E9E9E9;background-color:#FFFFFF;color:#0000CC;}

.gsc-results .gsc-cursor-box .gsc-cursor-current-page {border-color:#FF9900;background-color:#FFFFFF;color:#0000CC;}

.gsc-webResult.gsc-result.gsc-promotion {border-color:#336699;background-color:#FFFFFF;}

.gsc-completion-title {color:#0000CC;}.gsc-completion-snippet {color:#000000;}

.gs-promotion a.gs-title:link,.gs-promotion a.gs-title:link *,.gs-promotion .gs-snippet a:link {color:#0000CC;}

.gs-promotion a.gs-title:visited,.gs-promotion a.gs-title:visited *,.gs-promotion .gs-snippet a:visited {color:#0000CC;}

.gs-promotion a.gs-title:hover,.gs-promotion a.gs-title:hover *,.gs-promotion .gs-snippet a:hover {color:#0000CC;}

.gs-promotion a.gs-title:active,.gs-promotion a.gs-title:active *,.gs-promotion .gs-snippet a:active {color:#0000CC;}

.gs-promotion .gs-snippet, .gs-promotion .gs-title .gs-promotion- title-right, .gs-promotion .gs-title .gs-promotion-title- right * {color:#000000;}

.gs-promotion .gs-visibleUrl,

.gs-promotion .gs-visibleUrl-short {color:#008000;}

/style

/div

?phpget_footer();?

保存代码吧,我们的工作还没有完成,接下来可能会出现输入搜索词无效的问题。因为是从外部调用谷歌搜索引擎,它自然不知道你要搜索什么,所以要从URL中提取出搜索词:

在刚刚修改完成的search.php文件中搜索}, true,用下面的代码替换它:

varmatch=location.search.match(/q=([^&]*)(&|$)/);

if(match&&match[1])

{

varsearch=decodeURIComponent(match[1]);

customSearchControl.execute(search); }

}

大功告成!不过需要注意的是,在上面的代码中找到match(/q=([^&]*)(&|$)/),里面的q是根据搜索网址格式决定的,如果你搜索关键字XX得到的网址为http://domain.com/?s=XX,那么必须将q改成s才可正常使用。并且由于某些原因,有时使用Google的服务可能会被所以请慎重考虑。

展开更多 50%)
分享

猜你喜欢

Word的上边距太小、页面之间距离太小

word
Word的上边距太小、页面之间距离太小

胸部太小的原因

电脑网络
胸部太小的原因

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

客厅太小如何装修

家居 客厅 小户型 装修效果图
客厅太小如何装修

胸部太小怎么办?

丰胸
胸部太小怎么办?

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

乳房太小 怎么丰胸

丰胸
乳房太小 怎么丰胸

电脑字体太小怎么调

电脑
电脑字体太小怎么调

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

手机酷狗音乐偶遇艺人怎么玩?

手机酷狗音乐偶遇艺人怎么玩?

微信变声器录音设为来电铃声方法

微信变声器录音设为来电铃声方法
下拉加载更多内容 ↓