:last-of-type Back

  • :last-of-type is a pseudo-class selector that selects an element that is the last element (sibling(兄弟姐妹關係)) of its type in the list of children of its parent.
  • It's similar with :first-of-type

Case: learning :last-of-type

See the Pen bEYMNo by aleen42 (@aleen42) on CodePen.

Copyright © aleen42 all right reserved,powered by GitbookUpdated time: 2016-10-09 06:25:23