私は何か間違ったことをしていますか?
css/sass:
#section
article
border-top: 1px solid black
&:first-child
border: none !important
html/haml:
#section
%h2 title
%article
stuff here. There is still a top border here despite first-child style.
%article
stuff here.
%article
stuff here.
これは機能せず、最初の にまだ境界線があり<article>
ます。別のクラスを作成article.noborder
し、最初の記事のようなことをして境界線をなくす必要があります。何か助けていただければ幸いです...cssは私を嫌っています。