markdown.css 设置文章的样式
返回的详情文章内容是标签加内容文字,使用 markdown,css 渲染样式 :
.markdown-body .octicon {
display: inline-block;
fill: currentColor;
vertical-align: text-bottom;
} .markdown-body .anchor {
float: left;
line-height: 1;
margin-left: -20px;
padding-right: 4px;
} .markdown-body .anchor:focus {
outline: none;
} .markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
color: #1b1f23;
vertical-align: middle;
visibility: hidden;
} .markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
text-decoration: none;
} .markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
visibility: visible;
} .markdown-body h1:hover .anchor .octicon-link:before,
.markdown-body h2:hover .anchor .octicon-link:before,
.markdown-body h3:hover .anchor .octicon-link:before,
.markdown-body h4:hover .anchor .octicon-link:before,
.markdown-body h5:hover .anchor .octicon-link:before,
.markdown-body h6:hover .anchor .octicon-link:before {
width: 16px;
height: 16px;
content: ' ';
display: inline-block;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E");
}.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
line-height: 1.5;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
font-size: 16px;
line-height: 1.5;
word-wrap: break-word;
} .markdown-body details {
display: block;
} .markdown-body summary {
display: list-item;
} .markdown-body a {
background-color: initial;
} .markdown-body a:active,
.markdown-body a:hover {
outline-width: 0;
} .markdown-body strong {
font-weight: inherit;
font-weight: bolder;
} .markdown-body h1 {
font-size: 2em;
margin: .67em 0;
} .markdown-body img {
border-style: none;
} .markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: monospace,monospace;
font-size: 1em;
} .markdown-body hr {
box-sizing: initial;
height: 0;
overflow: visible;
} .markdown-body input {
font: inherit;
margin: 0;
} .markdown-body input {
overflow: visible;
} .markdown-body [type=checkbox] {
box-sizing: border-box;
padding: 0;
} .markdown-body * {
box-sizing: border-box;
} .markdown-body input {
font-family: inherit;
font-size: inherit;
line-height: inherit;
} .markdown-body a {
color: #0366d6;
text-decoration: none;
} .markdown-body a:hover {
text-decoration: underline;
} .markdown-body strong {
font-weight: 600;
} .markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #dfe2e5;
} .markdown-body hr:after,
.markdown-body hr:before {
display: table;
content: "";
} .markdown-body hr:after {
clear: both;
} .markdown-body table {
border-spacing: 0;
border-collapse: collapse;
} .markdown-body td,
.markdown-body th {
padding: 0;
} .markdown-body details summary {
cursor: pointer;
} .markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
line-height: 10px;
color: #444d56;
vertical-align: middle;
background-color: #fafbfc;
border: 1px solid #d1d5da;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #d1d5da;
} .markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 0;
margin-bottom: 0;
} .markdown-body h1 {
font-size: 32px;
} .markdown-body h1,
.markdown-body h2 {
font-weight: 600;
} .markdown-body h2 {
font-size: 24px;
} .markdown-body h3 {
font-size: 20px;
} .markdown-body h3,
.markdown-body h4 {
font-weight: 600;
} .markdown-body h4 {
font-size: 16px;
} .markdown-body h5 {
font-size: 14px;
} .markdown-body h5,
.markdown-body h6 {
font-weight: 600;
} .markdown-body h6 {
font-size: 12px;
} .markdown-body p {
margin-top: 0;
margin-bottom: 10px;
} .markdown-body blockquote {
margin: 0;
} .markdown-body ol,
.markdown-body ul {
padding-left: 0;
margin-top: 0;
margin-bottom: 0;
} .markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
} .markdown-body ol ol ol,
.markdown-body ol ul ol,
.markdown-body ul ol ol,
.markdown-body ul ul ol {
list-style-type: lower-alpha;
} .markdown-body dd {
margin-left: 0;
} .markdown-body code,
.markdown-body pre {
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
font-size: 12px;
} .markdown-body pre {
margin-top: 0;
margin-bottom: 0;
} .markdown-body input::-webkit-inner-spin-button,
.markdown-body input::-webkit-outer-spin-button {
margin: 0;
-webkit-appearance: none;
appearance: none;
} .markdown-body :checked+.radio-label {
position: relative;
z-index: 1;
border-color: #0366d6;
} .markdown-body .border {
border: 1px solid #e1e4e8!important;
} .markdown-body .border-0 {
border: 0!important;
} .markdown-body .border-bottom {
border-bottom: 1px solid #e1e4e8!important;
} .markdown-body .rounded-1 {
border-radius: 3px!important;
} .markdown-body .bg-white {
background-color: #fff!important;
} .markdown-body .bg-gray-light {
background-color: #fafbfc!important;
} .markdown-body .text-gray-light {
color: #6a737d!important;
} .markdown-body .mb-0 {
margin-bottom: 0!important;
} .markdown-body .my-2 {
margin-top: 8px!important;
margin-bottom: 8px!important;
} .markdown-body .pl-0 {
padding-left: 0!important;
} .markdown-body .py-0 {
padding-top: 0!important;
padding-bottom: 0!important;
} .markdown-body .pl-1 {
padding-left: 4px!important;
} .markdown-body .pl-2 {
padding-left: 8px!important;
} .markdown-body .py-2 {
padding-top: 8px!important;
padding-bottom: 8px!important;
} .markdown-body .pl-3,
.markdown-body .px-3 {
padding-left: 16px!important;
} .markdown-body .px-3 {
padding-right: 16px!important;
} .markdown-body .pl-4 {
padding-left: 24px!important;
} .markdown-body .pl-5 {
padding-left: 32px!important;
} .markdown-body .pl-6 {
padding-left: 40px!important;
} .markdown-body .f6 {
font-size: 12px!important;
} .markdown-body .lh-condensed {
line-height: 1.25!important;
} .markdown-body .text-bold {
font-weight: 600!important;
} .markdown-body .pl-c {
color: #6a737d;
} .markdown-body .pl-c1,
.markdown-body .pl-s .pl-v {
color: #005cc5;
} .markdown-body .pl-e,
.markdown-body .pl-en {
color: #6f42c1;
} .markdown-body .pl-s .pl-s1,
.markdown-body .pl-smi {
color: #24292e;
} .markdown-body .pl-ent {
color: #22863a;
} .markdown-body .pl-k {
color: #d73a49;
} .markdown-body .pl-pds,
.markdown-body .pl-s,
.markdown-body .pl-s .pl-pse .pl-s1,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre {
color: #032f62;
} .markdown-body .pl-smw,
.markdown-body .pl-v {
color: #e36209;
} .markdown-body .pl-bu {
color: #b31d28;
} .markdown-body .pl-ii {
color: #fafbfc;
background-color: #b31d28;
} .markdown-body .pl-c2 {
color: #fafbfc;
background-color: #d73a49;
} .markdown-body .pl-c2:before {
content: "^M";
} .markdown-body .pl-sr .pl-cce {
font-weight: 700;
color: #22863a;
} .markdown-body .pl-ml {
color: #735c0f;
} .markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
font-weight: 700;
color: #005cc5;
} .markdown-body .pl-mi {
font-style: italic;
color: #24292e;
} .markdown-body .pl-mb {
font-weight: 700;
color: #24292e;
} .markdown-body .pl-md {
color: #b31d28;
background-color: #ffeef0;
} .markdown-body .pl-mi1 {
color: #22863a;
background-color: #f0fff4;
} .markdown-body .pl-mc {
color: #e36209;
background-color: #ffebda;
} .markdown-body .pl-mi2 {
color: #f6f8fa;
background-color: #005cc5;
} .markdown-body .pl-mdr {
font-weight: 700;
color: #6f42c1;
} .markdown-body .pl-ba {
color: #586069;
} .markdown-body .pl-sg {
color: #959da5;
} .markdown-body .pl-corl {
text-decoration: underline;
color: #032f62;
} .markdown-body .mb-0 {
margin-bottom: 0!important;
} .markdown-body .my-2 {
margin-bottom: 8px!important;
} .markdown-body .my-2 {
margin-top: 8px!important;
} .markdown-body .pl-0 {
padding-left: 0!important;
} .markdown-body .py-0 {
padding-top: 0!important;
padding-bottom: 0!important;
} .markdown-body .pl-1 {
padding-left: 4px!important;
} .markdown-body .pl-2 {
padding-left: 8px!important;
} .markdown-body .py-2 {
padding-top: 8px!important;
padding-bottom: 8px!important;
} .markdown-body .pl-3 {
padding-left: 16px!important;
} .markdown-body .pl-4 {
padding-left: 24px!important;
} .markdown-body .pl-5 {
padding-left: 32px!important;
} .markdown-body .pl-6 {
padding-left: 40px!important;
} .markdown-body .pl-7 {
padding-left: 48px!important;
} .markdown-body .pl-8 {
padding-left: 64px!important;
} .markdown-body .pl-9 {
padding-left: 80px!important;
} .markdown-body .pl-10 {
padding-left: 96px!important;
} .markdown-body .pl-11 {
padding-left: 112px!important;
} .markdown-body .pl-12 {
padding-left: 128px!important;
} .markdown-body hr {
border-bottom-color: #eee;
} .markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
line-height: 10px;
color: #444d56;
vertical-align: middle;
background-color: #fafbfc;
border: 1px solid #d1d5da;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #d1d5da;
} .markdown-body:after,
.markdown-body:before {
display: table;
content: "";
} .markdown-body:after {
clear: both;
} .markdown-body>:first-child {
margin-top: 0!important;
} .markdown-body>:last-child {
margin-bottom: 0!important;
} .markdown-body a:not([href]) {
color: inherit;
text-decoration: none;
} .markdown-body blockquote,
.markdown-body details,
.markdown-body dl,
.markdown-body ol,
.markdown-body p,
.markdown-body pre,
.markdown-body table,
.markdown-body ul {
margin-top: 0;
margin-bottom: 16px;
} .markdown-body hr {
height: .25em;
padding: 0;
margin: 24px 0;
background-color: #e1e4e8;
border: 0;
} .markdown-body blockquote {
padding: 0 1em;
color: #6a737d;
border-left: .25em solid #dfe2e5;
} .markdown-body blockquote>:first-child {
margin-top: 0;
} .markdown-body blockquote>:last-child {
margin-bottom: 0;
} .markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25;
} .markdown-body h1 {
font-size: 2em;
} .markdown-body h1,
.markdown-body h2 {
padding-bottom: .3em;
border-bottom: 1px solid #eaecef;
} .markdown-body h2 {
font-size: 1.5em;
} .markdown-body h3 {
font-size: 1.25em;
} .markdown-body h4 {
font-size: 1em;
} .markdown-body h5 {
font-size: .875em;
} .markdown-body h6 {
font-size: .85em;
color: #6a737d;
} .markdown-body ol,
.markdown-body ul {
padding-left: 2em;
} .markdown-body ol ol,
.markdown-body ol ul,
.markdown-body ul ol,
.markdown-body ul ul {
margin-top: 0;
margin-bottom: 0;
} .markdown-body li {
word-wrap: break-all;
} .markdown-body li>p {
margin-top: 16px;
} .markdown-body li+li {
margin-top: .25em;
} .markdown-body dl {
padding: 0;
} .markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: 600;
} .markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
} .markdown-body table {
display: block;
width: 100%;
overflow: auto;
} .markdown-body table th {
font-weight: 600;
} .markdown-body table td,
.markdown-body table th {
padding: 6px 13px;
border: 1px solid #dfe2e5;
} .markdown-body table tr {
background-color: #fff;
border-top: 1px solid #c6cbd1;
} .markdown-body table tr:nth-child(2n) {
background-color: #f6f8fa;
} .markdown-body img {
max-width: 100%;
box-sizing: initial;
background-color: #fff;
} .markdown-body img[align=right] {
padding-left: 20px;
} .markdown-body img[align=left] {
padding-right: 20px;
} .markdown-body code {
padding: .2em .4em;
margin: 0;
font-size: 85%;
background-color: rgba(27,31,35,.05);
border-radius: 3px;
} .markdown-body pre {
word-wrap: normal;
} .markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
} .markdown-body .highlight {
margin-bottom: 16px;
} .markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
} .markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f6f8fa;
border-radius: 3px;
} .markdown-body pre code {
display: inline;
max-width: auto;
padding: 0;
margin: 0;
overflow: visible;
line-height: inherit;
word-wrap: normal;
background-color: initial;
border: 0;
} .markdown-body .commit-tease-sha {
display: inline-block;
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
font-size: 90%;
color: #444d56;
} .markdown-body .full-commit .btn-outline:not(:disabled):hover {
color: #005cc5;
border-color: #005cc5;
} .markdown-body .blob-wrapper {
overflow-x: auto;
overflow-y: hidden;
} .markdown-body .blob-wrapper-embedded {
max-height: 240px;
overflow-y: auto;
} .markdown-body .blob-num {
width: 1%;
min-width: 50px;
padding-right: 10px;
padding-left: 10px;
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
font-size: 12px;
line-height: 20px;
color: rgba(27,31,35,.3);
text-align: right;
white-space: nowrap;
vertical-align: top;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
} .markdown-body .blob-num:hover {
color: rgba(27,31,35,.6);
} .markdown-body .blob-num:before {
content: attr(data-line-number);
} .markdown-body .blob-code {
position: relative;
padding-right: 10px;
padding-left: 10px;
line-height: 20px;
vertical-align: top;
} .markdown-body .blob-code-inner {
overflow: visible;
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
font-size: 12px;
color: #24292e;
word-wrap: normal;
white-space: pre;
} .markdown-body .pl-token.active,
.markdown-body .pl-token:hover {
cursor: pointer;
background: #ffea7f;
} .markdown-body .tab-size[data-tab-size="1"] {
-moz-tab-size: 1;
tab-size: 1;
} .markdown-body .tab-size[data-tab-size="2"] {
-moz-tab-size: 2;
tab-size: 2;
} .markdown-body .tab-size[data-tab-size="3"] {
-moz-tab-size: 3;
tab-size: 3;
} .markdown-body .tab-size[data-tab-size="4"] {
-moz-tab-size: 4;
tab-size: 4;
} .markdown-body .tab-size[data-tab-size="5"] {
-moz-tab-size: 5;
tab-size: 5;
} .markdown-body .tab-size[data-tab-size="6"] {
-moz-tab-size: 6;
tab-size: 6;
} .markdown-body .tab-size[data-tab-size="7"] {
-moz-tab-size: 7;
tab-size: 7;
} .markdown-body .tab-size[data-tab-size="8"] {
-moz-tab-size: 8;
tab-size: 8;
} .markdown-body .tab-size[data-tab-size="9"] {
-moz-tab-size: 9;
tab-size: 9;
} .markdown-body .tab-size[data-tab-size="10"] {
-moz-tab-size: 10;
tab-size: 10;
} .markdown-body .tab-size[data-tab-size="11"] {
-moz-tab-size: 11;
tab-size: 11;
} .markdown-body .tab-size[data-tab-size="12"] {
-moz-tab-size: 12;
tab-size: 12;
} .markdown-body .task-list-item {
list-style-type: none;
} .markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
} .markdown-body .task-list-item input {
margin: 0 .2em .25em -1.6em;
vertical-align: middle;
}
使用格式:
1. 在 style 中引入 :
<style scoped lang="less">
// 加载 css 样式 , scoped 整个 css 文件都只在这个页面生效 引入 css 文件
@import "./github-markdown.css";
2. 加入 markdown-body 类
ps:使用 v-html 接收服务器返回的文章内容数据(带有标签的数据)
<!-- 文章内容 -->
<div
ref="articleContent"
class="article-content markdown-body"
v-html="articleInfo.content"
></div>
markdown.css 设置文章的样式的更多相关文章
- 详解CSS设置默认字体样式
浏览器默认的样式往往在不同的浏览器.不同的语言版本甚至不同的系统版本都有不同的设置,这就导致如 果直接利用默认样式的页面在各个浏览器下显示非常不一致,于是就有了类似YUI的reset之类用来尽量重写浏 ...
- css设置网页打印样式
有三种方法 1. 为屏幕显示和打印分别准备一个css文件,如下所示: 用于屏幕显示的css: <link rel="stylesheet" href="css/n ...
- CSS设置input默认样式
HTML <ul class="box"> <li> <input type="checkbox" name="vehi ...
- CSS设置浏览器滚动条样式
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ ::-webkit-scrollbar { width: 5px; height: 110px; background-color: #F5 ...
- css 设置滚动条的样式
/*移动端显示滚动条*/ .layui-table-body::-webkit-scrollbar { -webkit-appearance: none; } .layui-table-body::- ...
- [HTML/CSS]uploadify自定义按钮样式
概述 在项目中经常用到uploadify上传插件,但是FLASH按钮的外观往往跟我们网页的设计的主题色不太搭配.这时就需要对其样式进行修改. 样式文件是uploadify.css. 打开这个文件后,你 ...
- css设置移动端checkbox和radio样式
复选框Checkbox是Web应用常用控件,随处可见,原生的复选框控件一般就像下面这样: 这取决于操作系统和浏览器,有些时候,这种样子并不能满足设计要求,这时需要更为精致的复选框样式.以往只有少数浏览 ...
- CSS设置滚动条样式
因为在现在的大部分项目中很多都用到了滚动条,有时候用到模拟的滚动条,现在说下滚动条的CSS也能解决. 比如网易邮箱的滚动条样子很好看,就是利用的CSS来设置的,而且是webkit浏览器的.如图所示: ...
- css设置滚动条颜色与样式以及如何去掉与隐藏滚动条
我们大家在浏览网页的时偶尔会看到很漂亮的各种颜色样式的滚动条,这就是通过css代码控制来实现的,于是本人搜集整理一番,这里和大家分享一下使用CSS设置滚动条颜色以及如何去掉滚动条的方法,需要的朋友可以 ...
- CSS设置滚动条样式[转]
原文转载地址:http://www.javascript100.com/?p=756 webkit浏览器css设置滚动条 主要有下面7个属性 ::-webkit-scrollbar 滚动条整体部分,可 ...
随机推荐
- 【MySQL】LEFT JOIN 踩坑
一.问题发现: 主查询功能发现两条一样的记录,但是审批状态不一样,一个已通过,一个待审核 主表付款表: CREATE TABLE `pur_or_payment` ( `id` int(11) NOT ...
- 寻路数据集 —— PathFinding数据集 —— Moving AI Lab. 实验室
好几个做pathfinding的论文都是引用这个网站的数据集,不过这个网站的数据集的地图都是 .map 格式,这个类型的格式该如何打开还不知道. Moving AI Lab. 实验室的工作 地址: h ...
- ROS(机器人操作系统)的基本了解
参考: https://blog.csdn.net/qq_51963216/article/details/125754175 https://zhuanlan.zhihu.com/p/5956062 ...
- 常用的多臂赌博机算法——Bandit Algorithms for Website Optimization
"Bandit Algorithms for Website Optimization by John Myles White. Copyright 2013 John Myles Whit ...
- java多线程之自定义线程池
1.背景 线程池.....大家常用.... 自己搞一个,顺便练习一下多线程编程 2.自定义线程代码 2.1.拒绝策略接口 @FunctionalInterface public interface M ...
- 后端开发学习敏捷需求-->干系人分析与识别
干系人分析与识别 5W1H 干系人分析与识别 1. 干系人是什么 直接或者间接影响专题,以及被专题影响的人和组织,用户也是属于干系人,是产品直接或者间接的使用者 又叫利益相关者,指积极参与专题或者在专 ...
- SMU Spring 2023 Contest Round 3(2023年湘潭大学新生赛)
Problem A. 签到啦 从大到小排序,累加大于行李w时输出下标即可 int ans; void solve() { cin >> n >> m; int ans = 0; ...
- 远程采集服务器指标信息(一) 远程通过SSH执行命令
远程采集服务器信息,比如说磁盘信息.内存信息. 现介绍java通过SSH执行命令采集服务器信息,比如说执行df.ls.top. /** * * SSH远程执行shell类 */ public clas ...
- 22张图详解浏览器请求数据包如何到达web服务器(搞懂网络可以毕业了)
浏览器的请求数据包如何到达web服务器? 很多读者对于其中的完整流程不是特别的了解,下面一口君通过这22张图,详细的讲解我们点击浏览器的网址之后,数据包是如何经过重重险阻到达web server的. ...
- 智能指针相关:enable_shared_from_this()在开发中的常见应用
类中使用shared_ptr()的问题 当我们先定义一个指针,然后再用这个指针构造两个智能指针 int main() { int* pt = new int(); std::shared_ptr< ...