Home >Web Front-end >HTML Tutorial >I sincerely ask a question: About nested writing of CSS_html/css_WEB-ITnose
<!DOCTYPE ><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta name="generator" content="editplus" /> <meta name="author" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <style type="text/css"> .d{ .s{ color:red; } } /*.d .s{ color:red; }*/ </style> </head> <body> <div id="" class="d"> <span class="s">hello !</span> </div> </body></html>
CSS does not have nested writing
CSS does not have nested writing
It’s less
This is not native css, it is in LESS format. You need to load a less.js compiler to compile the LESS file into a static CSS file and apply it in the HTML document.
You can take a look at this
http://www.ibm.com/developerworks/cn/web/1207_zhaoch_lesscss/
It’s less
This is not native css, it is in LESS format. A less.js compiler needs to be loaded to compile the LESS file into a static CSS file and apply it in the HTML document.
You can take a look at this
http://www.ibm.com/developerworks/cn/web/1207_zhaoch_lesscss/