扫码关注官方订阅号
先放出代码:
效果如图所示图1图2
那么问题来了,我把鼠标悬停在搜索框上时搜索框会维持图2,可一旦将鼠标移到放大镜上时就会回到图1,求大神告诉我把鼠标悬停在放大镜上时如何维持图2!
闭关修行中......
你想要的是input和button hover时都出现图2的样式的话,你把hover放到外面那个p上不就完了? 具体:
htmlp:hover input { height: 30px; width: 200px; } p:hover button { background-color: #0066CC; }
html
p:hover input { height: 30px; width: 200px; } p:hover button { background-color: #0066CC; }
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你想要的是input和button hover时都出现图2的样式的话,你把hover放到外面那个p上不就完了?
具体: