15 组合选择器
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>组合选择器</title> <style> /*通配符*/ *{ padding:0; margin:0; } body{ color:green; } ul,ol{ list-style:none; } a{ /*text-decoration:设置文本是否有下滑线,如果赋值为underline则有下滑线,如果设置为none则没有下划线*/ /*text-decoration: underline;*/ text-decoration: none; color: #333333; } /*hover 选择器鼠标指针在其上浮动的链接设置样式*/ a:hover{ text-decoration: underline; color: #ff6700; } </style> </head> <body> <ul> <li>马玉刚</li> <li>马玉刚</li> <li>马玉刚</li> <li>马玉刚</li> </ul> <a href="">百度</a> </body> </html>