CSS里怎么设置文本只读
2个回答
展开全部
如果是文本内容的话,把这一段加在body里就可以了,不用css设置,就像下面那样,这样用户就不可以鼠标右键复制或者ctrl+c
<body leftmargin=0 topmargin=0 oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()'oncopy="return false;" oncut="return false;" onbeforecopy='return false' onmouseup='document.selection.empty()'>
<body leftmargin=0 topmargin=0 oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()'oncopy="return false;" oncut="return false;" onbeforecopy='return false' onmouseup='document.selection.empty()'>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询