怎么去opera浏览器 input上的黄色丑框

小猫王 发布于 2013/02/25 17:59
阅读 1K+
收藏 0

开源之夏第三届火热来袭,高校学生参与赢万元奖金!>>>

今天用opera测试,发现name为 username和 password的input,都给我加了个黄色的边框,如果不用username和password命名input就没有,现在改input名字,有点麻烦;

style="outline:none;" 能去掉chrome的黄色边框;

<body>

  <div>
  <form action="" >
        <ul>
          <li>
            <input name=" username" type="text" style="outline:none;">
          </li>
          <li>
            <input type="password" name=" password">
          </li>
        </ul>
        </form>
  </div>

  </body>


opera自动添加黄色边框


怎么解决掉opera自动添加的边框呢?

加载中
0
小猫王
小猫王
This comes from the "Wand": if you save your accounts information into the Wand, Opera signals it by adding a yellow/orange border inside the input controls.

You can then fill it automatically with Ctrl+Enter.

说是记录了账户信息,Ctrl+Enter自动在Wand填上信息;

Wand preferences

The Wand

The Wand is Opera's password and form manager. Enable it to let Opera store user names and passwords the first time you enter them, and to automatically fill in personal information in Web forms.

When you visit a Web site with a stored user name and password, you can log in simply by clicking the Wand button on the address bar, or by pressingCtrl+Enter.

Note that user names and passwords are encrypted on disk. If you want to protect your Wand from other users on the same computer by setting a master password, go to the Security preferences under "Advanced".

Wand passwords can be deleted from Tools > Delete private data or Tools > Advanced > Wand passwords.

Personal information

Some sites require you to fill in personal information such as your name and address. Rather than typing the same information over and over, you can enter it once here.

After entering your personal information in the preferences, you can quickly fill in forms by selecting from a drop-down once you start typing into the field, or by right-clicking the field.

Right-clicking any input field, including chat sessions and e-mail messages, will produce a sub-menu called "Insert personal", where you can select information that you have stored in the preferences.

If Opera recognizes a form field as one you have entered information for in the Wand preferences, you can also use the Wand to fill in the field. Click the Wand button or pressCtrl+Enter.

Tip: Use the "Other" fields for alternate addresses or other snippets of personal information you find yourself repeatedly typing into forms.

 随它去,我不弄了;@红薯

0
红薯
红薯
好像可以通过 input:focus 来设置样式
0
小猫王
小猫王

引用来自“红薯”的答案

好像可以通过 input:focus 来设置样式

opear是一直嵌套一个黄色边框在input里

我试了好像css改不了

1.input不用username,password命名 opera就没黄色边框

2.加一个表单,也能解决:

 <body>
  <div>
  <form action="" >

<input name="xyz" type="text">//name里的名称随便写,可以把type="hidden"

</form>


  <form action="xxx.action" >
        <ul>
          <li>
            <input name="username" type="text">
          </li>
          <li>
            <input type="password" name="password">
          </li>
        </ul>
        </form>
  </div>
  </body>


我还是搞不清原因...

0
泡不烂的凉粉
泡不烂的凉粉
你没发现opera 可以自定义式样吗?
0
南湖船老大
南湖船老大
兄弟很有钻研精神,也解决了我的疑惑,多谢了
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部
返回顶部
顶部