我有
我想要
我的代码html
<html>
<head></head>
<body>
<input type="text" x-webkit-speech />
</body>
</html>
如何使用 css、html 或 javascript 移动它?
最佳答案
在 CSS 中:
.myclass::-webkit-input-speech-button{
-webkit-transform: scale(0.0, 0.0);
margin-right: 0px; //here for move icon example: margin-right: -10px
position: absolute;
z-index: 10;
}
.myclass:hover::-webkit-input-speech-button, .cajasmodales:focus::-webkit-input-speech-button{
-webkit-transform: scale(1.0, 1.0);
margin-right: 0px; //here for move icon example: margin-right: -10px
position: absolute;
z-index: 10;
}
在 HTML 代码中:
<html>
<head></head>
<body>
<input class="myclass" type="text" x-webkit-speech />
</body>
</html>
关于javascript - 如何将图标/按钮移到文本框 x-webkit-speech 之外?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21613300/