2-3的練習題
有記號的那行:請問content屬于 content profile和content book的父輩嗎?對于 .content屬性的設置同樣應用于content profile and content book 嗎?在.content 中設置的background 貌似被content profile and content book 's background 覆蓋了吧,可以這么理解嗎
有記號的那行:請問content屬于 content profile和content book的父輩嗎?對于 .content屬性的設置同樣應用于content profile and content book 嗎?在.content 中設置的background 貌似被content profile and content book 's background 覆蓋了吧,可以這么理解嗎
2016-04-22
舉報
2016-04-22
是他的父輩,但是css樣式中,離結構越近的css樣式,他的優先級就越高,所以在.content中所設置的background是被其子代樣式所覆蓋了。
2016-04-22
嗯,可以的。這個就是標簽的優先級吧
2016-04-22
我覺得應該是的,總是執行最近的樣式啊,所以會被覆蓋