css怎么去掉input边框
时间:2021-04-19 来源:互联网
今天PHP爱好者给大家带来css去掉input边框的方法:1、通过直接在input中加“style=“outline:none;””来去掉input边框;2、在顶部style中直接控制css样式为“input{outline:none;}”即可。希望对大家有所帮助。
本文操作环境:Windows7系统、HTML5&&CSS3版,DELL G3电脑
去掉input边框的具体操作步骤如下:
1、在html页面中输入input的相关代码。
<div class="form"><input id="code" class="ipx code" name="code" placeholder="请点击按钮领取礼包" type="text"><input type="button" class="send" value="发送"></div>。
2、打开浏览器,出现点击input出现了蓝色边框。
3、直接在input中加style=“outline:none;”。
4、在顶部style中直接控制css样式:<style type="text/css"> input{outline:none;}</style>。
5、直接用 input:focus { outline: none; } 控制聚焦即可去掉蓝色边框。
以上就是css怎么去掉input边框的详细内容,更多请关注php爱好者其它相关文章!
相关阅读更多 +
-
新手怎么用欧意APP看行情? 2025-07-09
-
钟薛高破产雪糕刺客时代终结,消费理性回归平价产品主导市场(钟薛高雪糕味道怎么样) 2025-07-09
-
币圈必备的行情软件推荐2025 2025-07-09
-
迷你世界旋转装置怎么做-迷你世界旋转门 2025-07-09
-
使命召唤手游本周活动有哪些-高达版本福利活动 2025-07-09
-
安卓用户必装的数字货币交易APP 2025-07-09
最近更新