.notセレクタを使用して一行で書く方法。
li:not(:last-child) {border-bottom:1px #000 solid;}
これで一番最後のli以外にボーダーが設定される。
More than 5 years have passed since last update.
.notセレクタを使用して一行で書く方法。
li:not(:last-child) {border-bottom:1px #000 solid;}
これで一番最後のli以外にボーダーが設定される。
Register as a new user and use Qiita more conveniently