极简主义黑白线条动态SVG留言板代码

唯美留言板代码唯美留言板代码 2026-01-04
极简主义黑白线条动态SVG留言板代码

极简主义黑白线条动态SVG留言板代码

"Less is more."

. 留言 001: 极简即是极致。
. 留言 002: 留白是无声的表达。
点击查看极简代码
<style>
    .minimal-box { width: 300px; margin: 20px auto; font-family: 'Courier New', monospace; color: #000; }
    .minimal-box h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; border-bottom: 2px solid #000; padding-bottom: 5px; margin-bottom: 15px; }
    .msg-list { margin-bottom: 20px; }
    .msg-item { font-size: 12px; margin-bottom: 8px; padding-left: 10px; border-left: 2px solid #000; opacity: 0.8; }
    .input-area { display: flex; border: 1px solid #000; }
    .input-area input { flex: 1; border: none; padding: 8px; outline: none; font-family: inherit; background: transparent; }
    .input-area button { background: #000; color: #fff; border: none; padding: 0 15px; cursor: pointer; font-family: inherit; text-transform: uppercase; }
    .input-area button:hover { background: #333; }
    .line-art { width: 100%; height: 20px; margin-bottom: 10px; opacity: 0.5; }
</style>

<div class="minimal-box">
    <h2>Guest Book</h2>
    <svg class="line-art" viewBox="0 0 100 10" preserveAspectRatio="none">
        <path d="M0,5 Q25,0 50,5 T100,5" fill="none" stroke="black" stroke-width="0.5"/>
    </svg>
    <div class="msg-list" id="list">
        <div class="msg-item">Hello, World.</div>
    </div>
    <div class="input-area">
        <input type="text" id="minInput" placeholder="Write something..." onkeydown="if(event.keyCode==13) addMin()">
        <button onclick="addMin()">Send</button>
    </div>
</div>

<script>
    function addMin() {
        var val = document.getElementById('minInput').value;
        if(!val) return;
        var list = document.getElementById('list');
        var div = document.createElement('div');
        div.className = 'msg-item';
        div.innerText = val;
        list.appendChild(div);
        document.getElementById('minInput').value = '';
    }
</script>
        
精选评论
  • 赤色月光:106.89.170.234
    補記仲係讀書時候睇嘅經典之作烚下烚下  极简主义黑白线条动态SVG留言板代码
  • 环游发光睡裤:139.202.120.180
    这季尾收的太工整极简主义黑白线条动态SVG留言板代码没有弄大事件真好奇第6季怎么开头 极简主义黑白线条动态SVG留言板代码
  • Phoebe的情书:121.76.190.87
    这种片子得是阅碟颇多的人才能看懂 搞笑啊 哈哈  极简主义黑白线条动态SVG留言板代码
  • 惟勤Heart:222.83.163.64
    拍得很好看浓墨重彩的表现风格 疤面煞星不知道是不是从这片来的灵感写一个人如何走向灵魂的深渊 最好的故事感觉没有讲完极简主义黑白线条动态SVG留言板代码可能是觉得无论是谁杀死谁都不够高级吧 我倒是喜欢他不被杀死一个不死的恶魂就很带劲  极简主义黑白线条动态SVG留言板代码
  • 捕雨:36.58.144.126
    董永太太太丑了 杨子好好的商人干嘛非要出来演戏辣眼睛 他俩算是公费谈恋爱黄圣依好美啊  极简主义黑白线条动态SVG留言板代码
🆕 New