如何在文本中的每行右侧覆盖difs
我想在用户键入这样的文本方面的每行右键文本:
它也应该支持这样的滚动(请参阅视图时如何切断顶部?):):):
我该怎么做?
编辑:
另外,右侧的任何DIV都应在悬停时进行动画动画,然后单击时,内容应复制到剪贴板上。像这样:
I want to right-align text to each line in a textarea that a user is typing like this:
It should also support scrolling like this (see how the top is cut off when it's out of view?):
How might I go about doing that?
EDIT:
Also, any div on the right should animate on hover and when clicked, the contents should be copied to clipboard. Like so:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需在两个不同的文本区域中放置一个,然后将一个区域放在左和第二到右。然后使它们在视觉上看起来像一个:左MAKE
边界右翼:0;
for-righ-border-left:0;
对于您的任务,您可以使用
texterea
和div
这样:只需确保将相同的
font-size
和font-family
to textarea和div进行,以使文本看起来相同。Just make two different text areas and put one at left and second to right. Then make them look visually like one: for left make
border-right: 0;
for right -border-left: 0;
For your task you could use
texterea
anddiv
like that:Just be sure to make the same
font-size
andfont-family
to textarea and div to make text looks same.