Is this underscore written in css or js?

as shown in the figure below, is this underscore written in css or js? Is to put the mouse on, it will show an underline, open f12 to have a look, did not see how to do it.
http://www.sellertree.com/ind.

clipboard.png

Mar.02,2021

this style is generally implemented using the border property of css.
Let's analyze your website:

bottom border style:

check or uncheck the border-bottom attribute to see the effect

clipboard.png

:
hover :

clipboard.png

I believe that after the above debugging and verification, you will know why!

I hope it will be helpful to you!


<div></div>
div{
    border-bottom:1px solid -sharpfff;
}
div:hover{
    border-bottom:1px solid green;
}

is obviously not an underscore but a border attribute


css.
border-bottom+hover
it should be noted that when there is no Hover, we should also give border-bottom a height and the color is transparent.
in this way, the Hover will not suddenly come out with a bottom border


to supplement the animation. A simple left-to-right gradient can be realized only by css3. If you want to dynamically distinguish (left to right) (right to left) according to the mouse movement mode, you need to use js to determine the direction of mouse movement


border-bottom on the line


border-bottom: 3px solid-sharp09d170


it would be better with outline, because outline does not affect the size or position of elements like border, and outline does not occupy space.
border can be applied to almost all tangible html elements, while outline is designed for elements such as links, form controls, and ImageMap.


recommend things that can be done with outline


css.

Menu