Can I select only when there's no text around it?

前端 未结 4 962
执笔经年
执笔经年 2021-01-21 16:05

I would like to select anchor tags only when they\'re completely by themselves, that way I can make those look like buttons, without causing anchors within sentences to look lik

4条回答
  •  余生分开走
    2021-01-21 16:38

    Unfortunately no, you can't.

    You have to use JS by it self or any librady of it to interact with content of elements and found where is each element in the content.

    If you wish me to update my answer with a JS example prease ask for it.

提交回复
热议问题