马黑黑 发表于 2025-6-8 21:17
说的有道理
没道理的话我不{:4_173:}说
花飞飞 发表于 2025-6-8 21:31
没道理的话我不说
墙裂支持
马黑黑 发表于 2025-6-8 21:52
墙裂支持
{:4_173:}做梦的时候可以说说,任性一回
花飞飞 发表于 2025-6-9 22:02
做梦的时候可以说说,任性一回
{:4_196:}
马黑黑 发表于 2025-6-9 22:02
小猪猪乐啥呀,你不做梦呀
花飞飞 发表于 2025-6-9 22:06
小猪猪乐啥呀,你不做梦呀
梦不多,主要是睡得好
马黑黑 发表于 2025-6-9 22:07
梦不多,主要是睡得好
你这么好。我最近在吃中药,调睡眠是其中一项{:4_173:}
本帖最后由 马黑黑 于 2025-8-2 21:14 编辑 <br /><br /><style>
.codebox {
margin: 20px 10px;
padding: 10px 12px;
background: beige;
box-shadow: 0 0 1px rgba(0,0,0,.9);
position: relative;
}
.codebox li {
font: normal 16px/20px Consolas, 'Courier New', 'Andale Mono', monospace;
white-space: pre-wrap;
tab-size: 4;
color: #000;
padding: 0 10px;
word-break:break-all;
}
</style>
<p>测试li</p>
<div id="cDiv">
<style>
.ma {
position: relative;
margin: 20px auto;
width: 700px;
height: 400px;
background: url('https://638183.freep.cn/638183/small/playbg1.jpg') no-repeat center/cover;
}
.ma::before {
position: absolute;
content: '00000';
width: 100%;
height: 100%;
background: linear-gradient(45deg, beige, white, orange, yellow) ;
mask: url('https://638183.freep.cn/638183/web/svg/balls1.svg') no-repeat center/100% 100%;
}
</style>
<div class="ma"></div>
</div>
<script>
addLineNumber(cDiv);
function addLineNumber(elm) {
if (!elm instanceof Element) return;
elm.classList.add('codebox');
const lines = elm.innerHTML.trim().split('\n');
const total = lines.length;
const ol = document.createElement('ol');
lines.forEach( (line, key) => {
const li = document.createElement('li');
li.innerHTML = line;
ol.appendChild(li);
});
elm.innerHTML = '';
elm.appendChild(ol);
}
</script>