顶部文本
一行最多显示 40 个字。
一二三四五六七八九十,一二三四五六七八九十,一二三四五六七八九十,一二三四五六七八九十,一二三四五六七八九十
在 @font-face
规则中,你还可以定义 font-weight
和 font-style
等其他字体描述符。例如,如果你有一种粗体的字体版本,你可以创建另一个 @font-face
规则,其 font-weight
设置为 bold
。
选中
在非行内公式或者公式块中 | 行内公式或者公式块中 | ||
---|---|---|---|
上标 | X^2^ | X^2^ | X^2 |
下标 | H |
H ~2 ~ O | H_ 2 O |
上标和下标 | \sigma_X^2 | ||
- 有序列表项 1
- 有序列表项 2
- 嵌套有序列表项 1
- 嵌套有序列表项 2
- 有序列表项 3
- 无序列表项 1
- 无序列表项 2
- 嵌套无序列表项 1
- 嵌套无序列表项 2
- 无序列表项 3
- 任务未完成
- 任务已完成
分割线
abcdefghijklmnopqrstuvwxyz
/* 阅读模式 */
:root {
--color-light: white;
--monospace: "IBM Plex Mono", "Fira Code", "微软雅黑", monospace;
--side-bar-bg-color: #fafafa;
}
@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: normal;
src: local("Open Sans Regular"), local("OpenSans-Regular"), url("./github/open-sans-v17-latin-ext_latin-regular.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@media (prefers-color-scheme: light) {
color: var(--color-light)
}
@media only screen and (min-width: 1400px) {
#write {
max-width: 1024px;
}
}
html {
font-size: 16px;
}
/* 注释 */
/* comment */
#write {
max-width: 860px;
margin: 0 auto;
padding: 30px 30px 100px;
}
#write > ul:first-child,
#write > ol:first-child {
margin-top: 30px;
}
#write pre.md-meta-block {
margin-top: 0 !important;
}
import type { UserModule } from './types'
-import generatedRoutes from '~pages'
+import { routes } from 'vue-router/auto/routes'
import '@unocss/reset/tailwind.css'
import './styles/main.css'
import 'uno.css'
AutoImport({
imports: [
- 'vue-router',
+ VueRouterAutoImports,
+ {
+ // add any other imports you were relying on
+ 'vue-router/auto': ['useLink']
+ },
],
}),
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--注释,comment-->
</body>
</html>
// 注释,comment
/* 多行注释 */
/**
* 传入一个对象,判断对象是否为空
* @param object
* @returns {boolean}
*/
function isEmpty(object){
for(let key in obj){
return false; // 如果进到循环里面,说明有属性
}
return true;
}
declare function nextTick<T = void>(this: T, fn?: (this: T) => void): Promise<void>;
declare namespace Browser {
const storage: Storage.Static;
}
Record<Keys, ValueType>
type FixedKeys = Record<'key1' | 'key2' | 'key3', number>;
const example: FixedKeys = {
key1: 1,
key2: 2,
key3: 3
};
type ArbitraryKeys = Record<string, number>;
const example: ArbitraryKeys = {
key1: 1,
key2: 2,
key3: 3
};
function createRecord<K extends string>(keys: K[]): Record<K, string> {
const record: Record<K, string> = {} as Record<K, string>;
for (const key of keys) {
record[key] = `Value for ${key}`;
}
return record;
}
const keys = ['key1', 'key2', 'key3'] as const;
const example = createRecord(keys);
set(items: Record<string, any>): Promise<void>;
<script setup lang="ts" >
import type { DataTableColumns } from 'naive-ui'
import { computed, h, ref, watch } from 'vue'
interface DataProps {
renderKey: string
renderValue: string
key: string
value: string
}
const props = defineProps<Props>()
</script>
<template>
<NModal v-model:show="show" style="width: 90%; max-width: 900px;" preset="card">
<NTabs type="segment">
<div>
<NButton
type="primary"
size="small"
@click="changeShowModal('add')"
>
</NButton>
</div>
</NTabs>
</NModal>
</template>
搜我
// Ctrl+F或Ctrl+Shift+F
// 搜索 “codecontent”
// 搜索 “button”
中文
// 注释
英文
Il
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
等宽字体
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ