欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

使用原生JavaScript实现复制功能

最编程 2024-02-15 07:31:24
...
*{ margin: 0; padding: 0; } header{ height: 40px; } .head{ width: 100%; height: 40px; position: fixed; top: 0; background-color: #fff; display: flex; align-items: center; justify-content: center; } .copytext{ width: 100%; height: 300px; background-color: rgb(51,51,51); } .visit{ /* color: rgb(241,211,162); */ color: rgb(248,249,249); display: flex; } .visit button{ color: rgb(241,211,162); border: 2px solid rgb(241,211,162); background-color: rgb(51,51,51); } .visit input{ width: 10px; height: 10px; }

推荐阅读