Initially, it looks like this.
When the mouse pointer moves over it, it becomes like this
How to write the latter style? It seems that box-shadow is used. Please give me the specific code
Let’s use the focus event of js~~When the mouse is put on it, use the function function to loop { if judge if () { put it Change the picture when needed
}else{ Otherwise it will disappear} }
In fact, this level 2 navigation can also be done with css, but the effect is not as good as javascript
I want the css effect after putting it up, js can do it
The blue part can be a div. The word is the span in the div. When moving up, set the border of the span to black. When moving out, the border color will be transparent.
Try something like this.
The blue part can be a div. The word is the span in the div. When moving up, set the border of the span to black. When moving out, the border color will be transparent.
Try something like this
Then tell me what effect you want
The effect of the two pictures you gave is OK
Then tell me what effect you want.
The effect of the two pictures you gave is OK
It is to make the border into an embedded effect. It should be box-shadow, but I tried several sets of values. None of them are correct
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4) inset, 0px 1px 0px rgba(255, 255, 255, 0.1);
text-shadow: 0px - 1px 0px rgba(0, 0, 0, 0.796), 0px 0px 10px rgba(255, 255, 255, 0.298);