我正在尝试为我的个人网站设置一个“新闻和活动”框(如here所示)。你能指点我一些插件吗?谢谢。
好吧,我不会为此使用插件。
只需这样写入文本编辑器
HTML
<div class="scroll-box">
<p>Your excerpt goes in here!</p>
</div>
在你的CSS
.scroll-box {
background: #f4f4f4;
border: 2px solid rgba(0, 0, 0, 0.1);
height: 400px; /* maximum height of the box, feel free to change this! */
padding: 15px;
overflow-y: scroll;
}
如果你想要你可以制作自己的短代码,所以你不必在html <div class="scroll-box>
中包装你的文本