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

2016-04-01 20:44 62 1 收藏

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

【 tulaoshi.com - 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/年份/月份/天/*

月份和名称型以此类推

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

数字型: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

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合并:

?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]);

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

customSearchControl.execute(search); }

}

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

来源:https://www.tulaoshi.com/n/20160401/2099306.html

延伸阅读
标签: 电脑入门
声卡与音箱常见故障主要有无声、声音小、只有一只音箱有声、声音变调、有爆音、有噼啪声等,造成此故障的原因主要有静音、音量太小、声卡驱动问题、音箱损坏、声卡模块损坏、BIOS设置问题、声卡与其他设备冲突、声卡接触不良、声卡损坏等。 声卡与音箱故障排除方法如下。 电脑无声故障排除方法如下: (1) 首先检查任务栏右侧有无小喇叭。...
孩子交往太小气怎么办? 日常生活中,我们常常会发现有些孩子特别小气,不准其他小朋友动自己的东西,不愿与其他孩子分享物品。对于孩子的小气行为,家长要教育孩子: 1、学习分享 首先要从家庭中做起,使其懂得好东西应该大家分享。当家里来客人时,可有意识地让孩子帮助“招待”客人,如拿糖果给大家吃或拿玩具...
标签: 顺产 育儿
[标签:内容22 一位顺产妈妈的顺产直播实录 我的预产期是10月22日,临近的那几天没有什么异样,就是感觉宝宝已经挂在大腿根上了。(哈哈,现在想起来这感觉真奇怪),心里也真的是迫不及待地希望Pizza快点出来。每天老妈和婆婆跟着我爬楼梯,有时候一口气爬15层不停歇。过了22号,我也从盼望的心情越发变得淡定,心想Pizza你爱...
标签: 丰胸
案例分析 图钉提问: 因遗传的原因吧,胸太小,很不自信 想得到帮助:扬州哪家的整型医院好些 图老师解答: 病情分析:       你的这种情况是可以到当地的整形外科进行手术治疗的       指导意见:       首先是应注意要到正规的医院进行整形才行...
卵泡发育经验分享 图钉问: 大夫我月经周期平均是33天这个月是9号来的月经5天结束了今天去医院做彩超顺便看了下卵泡看有没有优势的双侧最大的才7mmx8mm我是不是不会排卵了这方面有问题啊?要什么时候才能排除成熟的卵子? 图老师答: ...

经验教程

746

收藏

57
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部