Adding
using the :after selector

后端 未结 5 1221
甜味超标
甜味超标 2021-02-07 02:03

I\'m trying to \"automatically\" add a horizontal-rule after each article in my page. Is there a way of doing this using the :after selector? I\'m hoping to be able to style it

5条回答
  •  [愿得一人]
    2021-02-07 02:46

    No you cannot with pure CSS/HTML. You would need some sort of scripting such as Javascript to handle the logic.

    Using JQuery:

    $(document).ready(function() {
        $("article").after("
    "); });

提交回复
热议问题