2012-11-10 39 views
0

在我的CSS代碼,我有這樣的:更好的方式來組織多個CSS代碼?

#feed .post:hover .rep {display:inline;} 
#feed .post:hover .com {display:inline;} 
#feed .post:hover .date {display:inline;} 

有沒有一種方法,我可以使它這樣而不是3行,這一切都在同一行?我試過

#feed .post:hover .rep, .com, .date {display:inline;} 

但是,這似乎並沒有工作。謝謝。

回答

1

這應做到: -

#feed .post:hover .rep, #feed .post:hover .com, #feed .post:hover .date {display: inline} 
+0

的工作,非常感謝。 – Richie

+0

很酷。確保你將q標記爲回答。很高興有幫助 –

相關問題