点击Chrome浏览器里的输入框后,会出现一个黄色的矩形框,怎么去掉这个?
input,button,select,textarea{outline:none};还是去不掉黄色方框
这是浏览器加上去的样式,没法改的
我测试是可以去掉,你发多点代码看看?
我测试的也可以呀,代码如下:
<!doctype html><html> <head> <meta charset="utf-8" /> <title>Temp Web Page</title> <style type="text/css"> input,button,select,textarea{outline:none} </style> </head> <body> <form name="form2" method="post" action ="login.php"> <div id="login"> 用户名:<input type="text" id="user" name="user"/> 密码:<input type="password" id="pass" name="pass"/> <input type="submit" id="abv" value="登录"/> </div> <textarea name="" id="" cols="30" rows="10"></textarea> <select name="" id=""> <option value="123">abc</option> <option value="456">cde</option> <option value="789">fgh</option> </select> </form> </body></html> outline:none应该是可以的
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号