js设置a:hover img

2025-02-24 01:43:26
推荐回答(3个)
回答1:


回答2:

添加一个层,如设id=“aa” 在css中写:
aa.a:hover img{
border:1px solid gray;
}

回答3:

给a设一个id 然后用JS调用