Word文档的使用技巧,三分钟让文档变漂亮,建议收藏

在 Word 里打字谁都会,可是看似简单的 Word 也有让人发狂的时候。究其原因,还是因为对它的脾气不够了解。
今天分享 7 个 Word 小技巧,能够让你在制作和排版文档时如有神助,效率百倍。

01 万能的 F4 键
经常留意秋叶 PPT 公众号的朋友们,对这个按键一定不陌生。F4 键的功能是重复上一步操作,这意味着,你上一步做完什么操作,按 F4 键,它会自动帮你再来一次。
比如,合并单元格,你再也不用反复去点合并按钮:

Word文档的使用技巧,三分钟让文档变漂亮,建议收藏
对了,有些键盘需要同时按 Fn 键才会生效。

批量更新标题格式
无论哪一个软件,高效操作的秘诀都在于,将重复的操作批量化完成。Word 里也有很多这样的功能。

比如,样式。设置过样式的标题,当你想要修改格式时,只需要修改其中一个就够了,其他的,可以让 Word 自动帮你完成:
Word文档的使用技巧,三分钟让文档变漂亮,建议收藏
一键将文本转表格
在处理文本上,Word 的能力其实被严重低估了。有些时候,它比 Excel 还强大。谁让 Word 的看家本领就是文本处理呢。
比如,把逗号分隔的长串文字转化成 5 列的表格,只需要这样点几下:
Word文档的使用技巧,三分钟让文档变漂亮,建议收藏
以后可别傻傻的复制粘贴哦。

快速对齐文本
方法步骤:
左对齐:按快捷键【Ctrl+L】
右对齐:按快捷键【Ctrl+R】
居中对齐:按快捷键【Ctrl+E】
两端对齐:按快捷键【Ctrl+J】
Word文档的使用技巧,三分钟让文档变漂亮,建议收藏
自动生成表头
方法步骤:选中表头,点击【布局】,点击【重复标题行】即可。
Word文档的使用技巧,三分钟让文档变漂亮,建议收藏
巧妙存储图片
方法步骤:点击【文件】,点击【另存为】,选择网页【.htm】的存储格式,点击【确定】即可,这时桌面会自动出现一个存储图片的文件夹。
Word文档的使用技巧,三分钟让文档变漂亮,建议收藏
以上就是给大家分享的小技巧,希望可以帮助到大家!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,@Mapper注解是Mybatis框架中用于标识数据访问层接口的注解,用于告诉Spring容器将该接口类实例化并注入到其他Bean中。其使用步骤如下: 1. 在Spring Boot项目中引入Mybatis和Mybatis-Spring的依赖 2. 在配置文件中配置数据源和Mybatis的相关属性 3. 创建一个数据访问层接口,使用@Mapper注解标识该接口 4. 在该数据访问层接口中定义需要操作的数据库方法 5. 在Service或Controller中注入该数据访问层接口的实例,并调用其中的方法 下面是一个示例: 1. 在pom.xml中添加Mybatis和Mybatis-Spring的依赖: ```xml <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.6</version> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.1</version> </dependency> ``` 2. 在application.properties中配置数据源和Mybatis的相关属性: ```properties spring.datasource.url=jdbc:mysql://localhost:3306/test spring.datasource.username=root spring.datasource.password=123456 mybatis.type-aliases-package=com.example.demo.entity mybatis.mapper-locations=classpath:mapper/*.xml ``` 3. 创建一个数据访问层接口UserMapper,使用@Mapper注解标识该接口: ```java @Mapper public interface UserMapper { User selectByPrimaryKey(Integer id); int insert(User record); int updateByPrimaryKey(User record); int deleteByPrimaryKey(Integer id); } ``` 4. 在mapper目录下创建UserMapper.xml,定义需要操作的数据库方法: ```xml <mapper namespace="com.example.demo.mapper.UserMapper"> <resultMap id="BaseResultMap" type="com.example.demo.entity.User"> <id column="id" property="id" jdbcType="INTEGER"/> <result column="username" property="username" jdbcType="VARCHAR"/> <result column="password" property="password" jdbcType="VARCHAR"/> </resultMap> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer"> select * from user where id = #{id,jdbcType=INTEGER} </select> <insert id="insert" parameterType="com.example.demo.entity.User" useGeneratedKeys="true" keyProperty="id"> insert into user (username, password) values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}) </insert> <update id="updateByPrimaryKey" parameterType="com.example.demo.entity.User"> update user set username = #{username,jdbcType=VARCHAR}, password = #{password,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER} </update> <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> delete from user where id = #{id,jdbcType=INTEGER} </delete> </mapper> ``` 5. 在Service或Controller中注入UserMapper的实例,并调用其中的方法: ```java @Service public class UserServiceImpl implements UserService { @Autowired private UserMapper userMapper; @Override public User selectByPrimaryKey(Integer id) { return userMapper.selectByPrimaryKey(id); } @Override public int insert(User user) { return userMapper.insert(user); } @Override public int updateByPrimaryKey(User user) { return userMapper.updateByPrimaryKey(user); } @Override public int deleteByPrimaryKey(Integer id) { return userMapper.deleteByPrimaryKey(id); } } ``` 这就是使用@Mapper注解的基本步骤,希望对你有所帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值