<!DOCTYPE html> <html> <head> <style> div { user-select:none; } div > p{ user-select:auto; } </style> </head> <body> <div> <p>This paragraph can not be selected because the value of user-select property for the parent element is none.</p> </div> </body> </html>
Run
×
Share