html按键border,html - changing button tag border color - Stack Overflow

本文探讨了如何在HTML中修改无边框按钮选中时出现的棕色边框颜色,将其更改为白色,并调整高亮矩形的宽度。通过设置`outline-color`属性可以改变高亮颜色,但如何扩展矩形宽度成为了一个问题。作者展示了初始页面加载的图片及其在按下Tab键后的变化,并寻求解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I have put an image in border-less button tag. When the button is selected with Tab, a brown border appears around the image. How do I change color of that rectangle from brown to white. Is is possible to have a white rectangle with inner and outer shadow of blue.

HTML

help

EDIT:

a9ERx.png

I can change highlight color by using style=outline-color:white

HTML

help

help

hXHsl.png

Here is my initial page load image and if I press Tab I get a highlight similar to what is shown

UOSpA.png

How do I increase the rectangle width.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值