mylomen-server/static/yanxuelu.html
shaoyongjun 8d6354c239 to:sync
2024-10-28 22:28:43 +08:00

192 lines
5.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<!-- https://quilljs.com/docs/customization/registries -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>📒</title>
<link rel="stylesheet" type="text/css" href="/v1/static/css/normalize.css">
<style>
/* 字体 */
:root {
/* font-size: calc(0.5em + 1vw); */
font-size: 62.5%;
}
/* style sheet for "A4" printing */
@media print and (width: 21cm) and (height: 29.7cm) {
@page {
margin: 3cm;
}
}
/* style sheet for "letter" printing */
@media print and (width: 8.5in) and (height: 11in) {
@page {
margin: 1in;
}
}
* {
/* margin: 1px 2px;
padding: 1px 2px; */
font-family: Roboto-Regular, PingFang SC, SF Pro SC, SF Pro Text, SF Pro Icons, Helvetica Neue, Roboto, Helvetica, Arial, sans-serif;
outline: none;
/* box-sizing: border-box; */
}
header {
position: relative;
top: 0;
/* height: 8rem; */
z-index: 9999;
left: 0;
right: 0;
width: 100%;
background: #f7dcbc;
}
#noteshare {
width: 80%;
/* width: 21cm; */
min-height: 80rem;
font-size: 1.6rem;
/*border: 1px red solid;*/
margin: auto auto;
}
#noteshare p {
border: 1px rgb(248, 245, 245) solid;
/* border: none; */
}
#testInput {
width: 100%;
height: 50px;
border: 1px rgb(0, 140, 255) solid;
margin: 20px auto;
}
::selection {
color: antiquewhite;
background-color: cadetblue;
text-shadow: #00a9ff;
}
.my-divider-item {
background-color: grey;
width: 1px;
height: 2rem;
margin: 2px 10px 2px 8px;
}
.childStyleStrong {
font-weight: bold
}
.childStyleI {
font-style: italic;
}
.childStyleU {
text-decoration: underline;
//线
//text-decoration: line-through;
}
.childStyleDel {
text-decoration: line-through;
}
.childStyleColor {
color: red;
}
</style>
</head>
<body style="display: flex; flex-direction:column; ">
<header>
<div style="display: flex;
padding: 1rem 4rem;
justify-content: space-between;
align-items: center;
background: #f8f6f4;
margin: 0 auto;">
<div class="head-left">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z" fill="black"></path>
</svg>
</div>
<div class="head-center" style="display: flex;
justify-content: center;
align-items: center;
max-width: 650px;
background-color: aqua;">
<div style="
position: fixed;
z-index: 87;
/* top: 200px; */
/* left: 324px; */
">
<div>
<div style="display: flex;
">
<div>
<button id="myPlusB" data-value="b">加粗</button>
</div>
<div class="my-divider-item"></div>
<div>
<button id="myPlusI" data-value="i"><i>I</i></button>
</div>
<div class="my-divider-item"></div>
<div>
<button id="myPlusU" data-value="u"><u>下划线</u></button>
</div>
<div class="my-divider-item"></div>
<div>
<button id="myPlusDel" data-value="del">
<del>删除线</del>
</button>
</div>
<div class="my-divider-item"></div>
<div>
<button id="myPlusC" data-value="c_red">红色</button>
</div>
<!-- <div class="my-divider-item"></div>-->
<!-- <div>-->
<!-- <button onclick="info(this)">info</button>-->
<!-- </div>-->
</div>
</div>
</div>
</div>
<div class="head-right">
<button>同步</button>
</div>
</div>
</header>
<main>
<div id="noteshare" spellcheck="false" translate="no">
</div>
</main>
<footer>
</footer>
</body>
<script src="/v1/static/js/utils.js"></script>
<script src="/v1/static/js/styleCmd.js"></script>
<script src="/v1/static/js/yanxuelu.js"></script>
</html>