Есть ли эквивалент для -moz-user-select / -webkit-user-select для IE6?
-moz-user-select
-webkit-user-select
Мне бы хотелось, чтобы текст на моей странице не был доступен для выбора во всех основных браузерах.
Какое для этого лучшее решение?
, если это для маскировки небольших элементов, у меня будет пустой DIV над текстом, и я получу абсолютную позицию DIV с z-индексом выше, чем у текста. убедитесь, что DIV охватывает все.
Вот пример
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Unselectable text</title> </head> <body style="height: 100%; padding: 0; margin: 0;"> <style> .column {width: 30em; margin: 1em;} p {position: relative; z-index: 1; //height: 100%;} /* you can remove //height if declare doctype */ .unselector {display: block; position: absolute; z-index: 2; width: 100%; height: 100%; top: 0; left: 0;} .unselector img {display: block; position: absolute; z-index: 3; width: 100%; height: 100%;} </style> <div class="column"> <p> <span class="unselector"><img src="1.gif" alt="" border="0" /></span> Activists on ships raided by Israeli commandos cast doubt on Israel's version of events that led to at least nine deaths. Yes, the webpage is currently not available. </p> </div> </body> </html>
p.s. 1.gif является прозрачным 1px * 1px изображение