Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 694 Bytes

#28-韩梅梅拒绝了李雷.md

File metadata and controls

27 lines (16 loc) · 694 Bytes

题目描述:

韩梅梅拒绝了李雷,李雷伤心地问韩梅梅,你到底喜欢怎么样的男生。韩梅梅说,她喜欢又高、又富、又帅的男生。

假设现在页面上有很多个 div 元素代表不同的男生,类名表示他们具有的特性,例如 tall 表示高,wealthy 表示富,handsome 表示帅。

请你完成 CSS, 给韩梅梅喜欢的男生加上红色的边框(1px solid red)


思路:

一个div同时有三个class特性, tall, wealthy, handsome


参考答案:

div.tall.wealthy.handsome {
  border: 1px solid red;
}