1、选中页面文字和元素时的背景颜色
::selection { background: #25b864; color: #fff; }
2、不能选择页面内容(但可以拖拽内容进行复制。挺好玩的)
::selection { background: inherit; color: inherit; }
1、选中页面文字和元素时的背景颜色
::selection { background: #25b864; color: #fff; }
2、不能选择页面内容(但可以拖拽内容进行复制。挺好玩的)
::selection { background: inherit; color: inherit; }
转载于:https://www.cnblogs.com/CyLee/p/9579936.html