找找图标

lock-outline SVG 图标

solarlock-outline

来自 Solar 开源图标集,矢量 SVG 可无损缩放到任意尺寸,支持在线改色、复制 React/Vue/HTML 代码。

图标 ID
solar:lock-outline
中文名
—
所属集合
Solar
集合规模
8,706 枚
基础网格
24px
色彩
单色(可改色)
开源协议
CC-BY-4.0
作者
480 Design

下载 lock-outline 图标

SVG 矢量源文件,或 PNG 按 16~512 预设与 16~1024 自定义尺寸导出,任意尺寸边缘锐利。

px

PNG 由矢量源实时渲染,任意尺寸边缘锐利无锯齿;下载与预览均免费,无需注册。

lock-outline 的预览与使用场景

切换预览颜色后,下方三底色、真实界面场景与各尺寸渲染会实时跟随。

预览颜色
lock-outline 图标 浅色背景预览浅色背景
lock-outline 图标 深色背景预览深色背景
lock-outline 图标 灰底融入预览灰底融入

在真实界面里长这样

继续按钮内 · 主操作
搜索lock-outline…输入框 · 前缀图标
lock-outline导航菜单 · 选中态
暂无内容空状态 · 引导提示
9:41lock-outline App 图标lock-outlinelock-boldlock-bold-duotonelock-brokenlock-line-duotonelock-linearfile-lock-boldfile-lock-bold-duotonefile-lock-brokenfile-lock-line-duotonefile-lock-linearfile-lock-outline手机桌面 · App 图标
lock-outlinesolar.design/icons/lock-outline浏览器 · 标签页与站点图标

各尺寸下的可读性

lock-outline 图标 24px 渲染24pxlock-outline 图标 32px 渲染32pxlock-outline 图标 48px 渲染48pxlock-outline 图标 64px 渲染64pxlock-outline 图标 96px 渲染96pxlock-outline 图标 128px 渲染128px

复制 lock-outline 图标代码

内联 SVG、React、Vue 与 CSS mask 四种主流引用方式,代码基于当前源文件生成,复制即用。

svgSVG 源码(内联 HTML)
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M5.25 9.30277V8C5.25 4.27208 8.27208 1.25 12 1.25C15.7279 1.25 18.75 4.27208 18.75 8V9.30277C18.9768 9.31872 19.1906 9.33948 19.3918 9.36652C20.2919 9.48754 21.0497 9.74643 21.6517 10.3483C22.2536 10.9503 22.5125 11.7081 22.6335 12.6082C22.75 13.4752 22.75 14.5775 22.75 15.9451V16.0549C22.75 17.4225 22.75 18.5248 22.6335 19.3918C22.5125 20.2919 22.2536 21.0497 21.6517 21.6516C21.0497 22.2536 20.2919 22.5125 19.3918 22.6335C18.5248 22.75 17.4225 22.75 16.0549 22.75H7.94513C6.57754 22.75 5.47522 22.75 4.60825 22.6335C3.70814 22.5125 2.95027 22.2536 2.34835 21.6516C1.74643 21.0497 1.48754 20.2919 1.36652 19.3918C1.24996 18.5248 1.24998 17.4225 1.25 16.0549V15.9451C1.24998 14.5775 1.24996 13.4752 1.36652 12.6082C1.48754 11.7081 1.74643 10.9503 2.34835 10.3483C2.95027 9.74643 3.70814 9.48754 4.60825 9.36652C4.80938 9.33948 5.02317 9.31872 5.25 9.30277ZM6.75 8C6.75 5.10051 9.10051 2.75 12 2.75C14.8995 2.75 17.25 5.10051 17.25 8V9.25344C16.8765 9.24999 16.4784 9.24999 16.0549 9.25H7.94513C7.52161 9.24999 7.12353 9.24999 6.75 9.25344V8ZM3.40901 11.409C3.68577 11.1322 4.07435 10.9518 4.80812 10.8531C5.56347 10.7516 6.56459 10.75 8 10.75H16C17.4354 10.75 18.4365 10.7516 19.1919 10.8531C19.9257 10.9518 20.3142 11.1322 20.591 11.409C20.8678 11.6858 21.0482 12.0743 21.1469 12.8081C21.2484 13.5635 21.25 14.5646 21.25 16C21.25 17.4354 21.2484 18.4365 21.1469 19.1919C21.0482 19.9257 20.8678 20.3142 20.591 20.591C20.3142 20.8678 19.9257 21.0482 19.1919 21.1469C18.4365 21.2484 17.4354 21.25 16 21.25H8C6.56459 21.25 5.56347 21.2484 4.80812 21.1469C4.07435 21.0482 3.68577 20.8678 3.40901 20.591C3.13225 20.3142 2.9518 19.9257 2.85315 19.1919C2.75159 18.4365 2.75 17.4354 2.75 16C2.75 14.5646 2.75159 13.5635 2.85315 12.8081C2.9518 12.0743 3.13225 11.6858 3.40901 11.409Z" clip-rule="evenodd"/></svg>
reactReact 组件(TSX)
export function LockOutlineIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width="1em"
      height="1em"
      viewBox="0 0 24 24"
      fill="currentColor"
      {...props}
      dangerouslySetInnerHTML={{ __html: `<path fill="currentColor" fill-rule="evenodd" d="M5.25 9.30277V8C5.25 4.27208 8.27208 1.25 12 1.25C15.7279 1.25 18.75 4.27208 18.75 8V9.30277C18.9768 9.31872 19.1906 9.33948 19.3918 9.36652C20.2919 9.48754 21.0497 9.74643 21.6517 10.3483C22.2536 10.9503 22.5125 11.7081 22.6335 12.6082C22.75 13.4752 22.75 14.5775 22.75 15.9451V16.0549C22.75 17.4225 22.75 18.5248 22.6335 19.3918C22.5125 20.2919 22.2536 21.0497 21.6517 21.6516C21.0497 22.2536 20.2919 22.5125 19.3918 22.6335C18.5248 22.75 17.4225 22.75 16.0549 22.75H7.94513C6.57754 22.75 5.47522 22.75 4.60825 22.6335C3.70814 22.5125 2.95027 22.2536 2.34835 21.6516C1.74643 21.0497 1.48754 20.2919 1.36652 19.3918C1.24996 18.5248 1.24998 17.4225 1.25 16.0549V15.9451C1.24998 14.5775 1.24996 13.4752 1.36652 12.6082C1.48754 11.7081 1.74643 10.9503 2.34835 10.3483C2.95027 9.74643 3.70814 9.48754 4.60825 9.36652C4.80938 9.33948 5.02317 9.31872 5.25 9.30277ZM6.75 8C6.75 5.10051 9.10051 2.75 12 2.75C14.8995 2.75 17.25 5.10051 17.25 8V9.25344C16.8765 9.24999 16.4784 9.24999 16.0549 9.25H7.94513C7.52161 9.24999 7.12353 9.24999 6.75 9.25344V8ZM3.40901 11.409C3.68577 11.1322 4.07435 10.9518 4.80812 10.8531C5.56347 10.7516 6.56459 10.75 8 10.75H16C17.4354 10.75 18.4365 10.7516 19.1919 10.8531C19.9257 10.9518 20.3142 11.1322 20.591 11.409C20.8678 11.6858 21.0482 12.0743 21.1469 12.8081C21.2484 13.5635 21.25 14.5646 21.25 16C21.25 17.4354 21.2484 18.4365 21.1469 19.1919C21.0482 19.9257 20.8678 20.3142 20.591 20.591C20.3142 20.8678 19.9257 21.0482 19.1919 21.1469C18.4365 21.2484 17.4354 21.25 16 21.25H8C6.56459 21.25 5.56347 21.2484 4.80812 21.1469C4.07435 21.0482 3.68577 20.8678 3.40901 20.591C3.13225 20.3142 2.9518 19.9257 2.85315 19.1919C2.75159 18.4365 2.75 17.4354 2.75 16C2.75 14.5646 2.75159 13.5635 2.85315 12.8081C2.9518 12.0743 3.13225 11.6858 3.40901 11.409Z" clip-rule="evenodd"/>` }}
    />
  );
}
vueVue 3 组件
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" v-html="body"></svg>
</template>

<script setup>
const body = `<path fill="currentColor" fill-rule="evenodd" d="M5.25 9.30277V8C5.25 4.27208 8.27208 1.25 12 1.25C15.7279 1.25 18.75 4.27208 18.75 8V9.30277C18.9768 9.31872 19.1906 9.33948 19.3918 9.36652C20.2919 9.48754 21.0497 9.74643 21.6517 10.3483C22.2536 10.9503 22.5125 11.7081 22.6335 12.6082C22.75 13.4752 22.75 14.5775 22.75 15.9451V16.0549C22.75 17.4225 22.75 18.5248 22.6335 19.3918C22.5125 20.2919 22.2536 21.0497 21.6517 21.6516C21.0497 22.2536 20.2919 22.5125 19.3918 22.6335C18.5248 22.75 17.4225 22.75 16.0549 22.75H7.94513C6.57754 22.75 5.47522 22.75 4.60825 22.6335C3.70814 22.5125 2.95027 22.2536 2.34835 21.6516C1.74643 21.0497 1.48754 20.2919 1.36652 19.3918C1.24996 18.5248 1.24998 17.4225 1.25 16.0549V15.9451C1.24998 14.5775 1.24996 13.4752 1.36652 12.6082C1.48754 11.7081 1.74643 10.9503 2.34835 10.3483C2.95027 9.74643 3.70814 9.48754 4.60825 9.36652C4.80938 9.33948 5.02317 9.31872 5.25 9.30277ZM6.75 8C6.75 5.10051 9.10051 2.75 12 2.75C14.8995 2.75 17.25 5.10051 17.25 8V9.25344C16.8765 9.24999 16.4784 9.24999 16.0549 9.25H7.94513C7.52161 9.24999 7.12353 9.24999 6.75 9.25344V8ZM3.40901 11.409C3.68577 11.1322 4.07435 10.9518 4.80812 10.8531C5.56347 10.7516 6.56459 10.75 8 10.75H16C17.4354 10.75 18.4365 10.7516 19.1919 10.8531C19.9257 10.9518 20.3142 11.1322 20.591 11.409C20.8678 11.6858 21.0482 12.0743 21.1469 12.8081C21.2484 13.5635 21.25 14.5646 21.25 16C21.25 17.4354 21.2484 18.4365 21.1469 19.1919C21.0482 19.9257 20.8678 20.3142 20.591 20.591C20.3142 20.8678 19.9257 21.0482 19.1919 21.1469C18.4365 21.2484 17.4354 21.25 16 21.25H8C6.56459 21.25 5.56347 21.2484 4.80812 21.1469C4.07435 21.0482 3.68577 20.8678 3.40901 20.591C3.13225 20.3142 2.9518 19.9257 2.85315 19.1919C2.75159 18.4365 2.75 17.4354 2.75 16C2.75 14.5646 2.75159 13.5635 2.85315 12.8081C2.9518 12.0743 3.13225 11.6858 3.40901 11.409Z" clip-rule="evenodd"/>`;
</script>
cssCSS mask(随 currentColor 改色)
.lock-outline {
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20d%3D%22M5.25%209.30277V8C5.25%204.27208%208.27208%201.25%2012%201.25C15.7279%201.25%2018.75%204.27208%2018.75%208V9.30277C18.9768%209.31872%2019.1906%209.33948%2019.3918%209.36652C20.2919%209.48754%2021.0497%209.74643%2021.6517%2010.3483C22.2536%2010.9503%2022.5125%2011.7081%2022.6335%2012.6082C22.75%2013.4752%2022.75%2014.5775%2022.75%2015.9451V16.0549C22.75%2017.4225%2022.75%2018.5248%2022.6335%2019.3918C22.5125%2020.2919%2022.2536%2021.0497%2021.6517%2021.6516C21.0497%2022.2536%2020.2919%2022.5125%2019.3918%2022.6335C18.5248%2022.75%2017.4225%2022.75%2016.0549%2022.75H7.94513C6.57754%2022.75%205.47522%2022.75%204.60825%2022.6335C3.70814%2022.5125%202.95027%2022.2536%202.34835%2021.6516C1.74643%2021.0497%201.48754%2020.2919%201.36652%2019.3918C1.24996%2018.5248%201.24998%2017.4225%201.25%2016.0549V15.9451C1.24998%2014.5775%201.24996%2013.4752%201.36652%2012.6082C1.48754%2011.7081%201.74643%2010.9503%202.34835%2010.3483C2.95027%209.74643%203.70814%209.48754%204.60825%209.36652C4.80938%209.33948%205.02317%209.31872%205.25%209.30277ZM6.75%208C6.75%205.10051%209.10051%202.75%2012%202.75C14.8995%202.75%2017.25%205.10051%2017.25%208V9.25344C16.8765%209.24999%2016.4784%209.24999%2016.0549%209.25H7.94513C7.52161%209.24999%207.12353%209.24999%206.75%209.25344V8ZM3.40901%2011.409C3.68577%2011.1322%204.07435%2010.9518%204.80812%2010.8531C5.56347%2010.7516%206.56459%2010.75%208%2010.75H16C17.4354%2010.75%2018.4365%2010.7516%2019.1919%2010.8531C19.9257%2010.9518%2020.3142%2011.1322%2020.591%2011.409C20.8678%2011.6858%2021.0482%2012.0743%2021.1469%2012.8081C21.2484%2013.5635%2021.25%2014.5646%2021.25%2016C21.25%2017.4354%2021.2484%2018.4365%2021.1469%2019.1919C21.0482%2019.9257%2020.8678%2020.3142%2020.591%2020.591C20.3142%2020.8678%2019.9257%2021.0482%2019.1919%2021.1469C18.4365%2021.2484%2017.4354%2021.25%2016%2021.25H8C6.56459%2021.25%205.56347%2021.2484%204.80812%2021.1469C4.07435%2021.0482%203.68577%2020.8678%203.40901%2020.591C3.13225%2020.3142%202.9518%2019.9257%202.85315%2019.1919C2.75159%2018.4365%202.75%2017.4354%202.75%2016C2.75%2014.5646%202.75159%2013.5635%202.85315%2012.8081C2.9518%2012.0743%203.13225%2011.6858%203.40901%2011.409Z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20d%3D%22M5.25%209.30277V8C5.25%204.27208%208.27208%201.25%2012%201.25C15.7279%201.25%2018.75%204.27208%2018.75%208V9.30277C18.9768%209.31872%2019.1906%209.33948%2019.3918%209.36652C20.2919%209.48754%2021.0497%209.74643%2021.6517%2010.3483C22.2536%2010.9503%2022.5125%2011.7081%2022.6335%2012.6082C22.75%2013.4752%2022.75%2014.5775%2022.75%2015.9451V16.0549C22.75%2017.4225%2022.75%2018.5248%2022.6335%2019.3918C22.5125%2020.2919%2022.2536%2021.0497%2021.6517%2021.6516C21.0497%2022.2536%2020.2919%2022.5125%2019.3918%2022.6335C18.5248%2022.75%2017.4225%2022.75%2016.0549%2022.75H7.94513C6.57754%2022.75%205.47522%2022.75%204.60825%2022.6335C3.70814%2022.5125%202.95027%2022.2536%202.34835%2021.6516C1.74643%2021.0497%201.48754%2020.2919%201.36652%2019.3918C1.24996%2018.5248%201.24998%2017.4225%201.25%2016.0549V15.9451C1.24998%2014.5775%201.24996%2013.4752%201.36652%2012.6082C1.48754%2011.7081%201.74643%2010.9503%202.34835%2010.3483C2.95027%209.74643%203.70814%209.48754%204.60825%209.36652C4.80938%209.33948%205.02317%209.31872%205.25%209.30277ZM6.75%208C6.75%205.10051%209.10051%202.75%2012%202.75C14.8995%202.75%2017.25%205.10051%2017.25%208V9.25344C16.8765%209.24999%2016.4784%209.24999%2016.0549%209.25H7.94513C7.52161%209.24999%207.12353%209.24999%206.75%209.25344V8ZM3.40901%2011.409C3.68577%2011.1322%204.07435%2010.9518%204.80812%2010.8531C5.56347%2010.7516%206.56459%2010.75%208%2010.75H16C17.4354%2010.75%2018.4365%2010.7516%2019.1919%2010.8531C19.9257%2010.9518%2020.3142%2011.1322%2020.591%2011.409C20.8678%2011.6858%2021.0482%2012.0743%2021.1469%2012.8081C21.2484%2013.5635%2021.25%2014.5646%2021.25%2016C21.25%2017.4354%2021.2484%2018.4365%2021.1469%2019.1919C21.0482%2019.9257%2020.8678%2020.3142%2020.591%2020.591C20.3142%2020.8678%2019.9257%2021.0482%2019.1919%2021.1469C18.4365%2021.2484%2017.4354%2021.25%2016%2021.25H8C6.56459%2021.25%205.56347%2021.2484%204.80812%2021.1469C4.07435%2021.0482%203.68577%2020.8678%203.40901%2020.591C3.13225%2020.3142%202.9518%2019.9257%202.85315%2019.1919C2.75159%2018.4365%202.75%2017.4354%202.75%2016C2.75%2014.5646%202.75159%2013.5635%202.85315%2012.8081C2.9518%2012.0743%203.13225%2011.6858%203.40901%2011.409Z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

给 lock-outline 加一点动效

单文件 CSS 即可播放,无需任何依赖;描画动效仅对描边类图标生效。

lock-outline 呼吸动效演示

呼吸

透明度往复渐变,适合状态提示与在线指示。

css呼吸动效样式
.icon-lock-outline {
  animation: icon-breathe 1.8s ease-in-out infinite;
}

@keyframes icon-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
lock-outline 旋转动效演示

旋转

匀速循环旋转,适合加载中场景。

css旋转动效样式
.icon-lock-outline {
  animation: icon-spin 1.6s linear infinite;
}

@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

SVG 健康报告

对源文件的客观技术指标,供工程侧评估引用方式。

文件体积

1.89 KB

1,940 字节

viewBox

0 0 24 24

矢量坐标系

图元总数

1

<path> ×1

风格

单色(跟随 currentColor)

填充跟随容器颜色

同时含 width/height 与 viewBox:可以只保留 viewBox,让图标跟随容器自适应缩放。 文件体积 1.89 KB(1,940 字节),图元 1 个,风格为单色(跟随 currentColor)。

常见问题

关于 lock-outline 图标的下载、商用与改色。

lock-outline 图标是什么?▾

它是 Solar(solar)开源图标集中的 lock-outline 图标,单色(跟随 currentColor),viewBox 为 0 0 24 24,文件仅 1.89 KB,矢量格式可无损缩放到任意尺寸。

如何下载 lock-outline 图标?▾

点击「下载与导出」中的 SVG 源文件按钮保存矢量文件;也可以按 512 / 256 / 128 / 64 / 32 / 16px 预设导出 PNG,或在输入框填 16~1024 之间的任意尺寸。需要 iOS、Android 全套尺寸时,用素材包生成器一键打包。

lock-outline 图标可以商用吗?▾

该图标采用 CC BY 4.0(CC-BY-4.0) 开源协议,通常允许在遵守协议的前提下免费使用,常见要求是保留作者版权声明。商用前建议阅读协议原文确认。

如何修改 lock-outline 图标的颜色?▾

在「预览与场景」的色板中切换颜色,三底色与全部场景会实时跟随;点击任一相近图标可打开预览弹层,复制对应颜色的 SVG 源码或 PNG。也可以复制 SVG 源码后自行修改 fill 值。

Solar 中的相近图标

lock-bold
lock-bold-duotone
lock-broken
lock-line-duotone
lock-linear
file-lock-bold
file-lock-bold-duotone
file-lock-broken
file-lock-line-duotone
file-lock-linear
file-lock-outline
heart-lock-bold
heart-lock-bold-duotone
heart-lock-broken
heart-lock-line-duotone
heart-lock-linear
heart-lock-outline
folder-lock-bold
folder-lock-bold-duotone
folder-lock-broken
folder-lock-line-duotone
folder-lock-linear
folder-lock-outline
lock-keyhole-bold