文章显示h1-h6 样式修改

deploy
DESKTOP-4RNDQIC\29019 2021-02-02 20:00:52 +08:00
parent 030fa1fcea
commit 053ad73f45
1 changed files with 39 additions and 4 deletions

View File

@ -20,6 +20,42 @@
#doc_toc ul li {
color: #8e846b;
}
.panel-body h1{
margin-top: 8px;
margin-bottom: 8px;
font-size: 34px;
font-weight: bold;
}
.panel-body h2{
margin-top: 5px;
margin-bottom: 5px;
font-size: 31px;
font-weight: bold;
}
.panel-body h3{
margin-top: 3px;
margin-bottom: 3px;
font-size: 28px;
font-weight: bold;
}
.panel-body h4{
margin-top: 3px;
margin-bottom: 3px;
font-size: 25px;
font-weight: bold;
}
.panel-body h5{
margin-top: 3px;
margin-bottom: 3px;
font-size: 22px;
font-weight: bold;
}
.panel-body h6{
margin-top: 3px;
margin-bottom: 3px;
font-size: 20px;
font-weight: bold;
}
</style>
</head>
@ -101,7 +137,7 @@
</div>
<div class="col-lg-7" style="padding: 0px;" id="docshow" >
<div class="panel panel-default" id="doc_id_{{ doc.id }}" style="letter-spacing: 0.5px;">
<div class="panel-heading" style="font-size: 20px ; background: #1d5987;color: white">{{ doc.title }}</div>
<div class="panel-heading" style=" background: #1d5987;color: white">{{ doc.title }}</div>
<div class="panel-body" style="">
{{ doc.content | raw }}
</div>
@ -161,10 +197,9 @@
<!--评论列表显示区end-->
</div>
</div>
<div style="position: fixed;top: 50px; right: 20px;" id="doc_toc" hidden>
{{ doc.toc| raw }}
<div style="position: fixed;top: 50px; right: 20px;" id="doc_toc" hidden>
{{ doc.toc| raw }}</div>
</div>
</div>
<div class="row">
<ul class="pagination" style="margin-left: 50%" id="pagenation">