html - 如何从 textarea 中的文本输入中删除下划线?
问题描述
我在 textarea 中使用不同类型的字体。但是当我开始输入(在android中)时,我输入的文本带有下划线,直到我点击空格,然后下一个单词再次带有下划线,依此类推。这个下划线怎么去掉?我试过text-decoration: none;
但它不起作用。
HTML
<ion-row class="text-row ion-justify-content-center">
<ion-textarea #textBlock id="textId" (ionBlur)="focusText()" [(ngModel)]="textBlockData.text" rows="1" maxRows="15"
style="
font-size: {{ textBlockData.fontSize }}px;
font-family: {{ textBlockData.fontFamily }};
color: {{ textBlockData.color }};" class="text-input" (resized)="onResized($event)"
placeholder="Write something" autosize>
</ion-textarea>
</ion-row>
SCSS
@font-face {
font-family: Pacifico;
src: url("../../../../assets/fonts/Pacifico-Regular.ttf");
}
@font-face {
font-family: Roboto;
src: url("../../../../assets/fonts/Roboto-Medium.ttf");
}
.text-input {
border-radius: 20px;
position: absolute;
background: transparent;
color: white;
max-height: 500px;
white-space: break-spaces;
text-decoration: none;
}
解决方案
好的,它是 android 键盘中的拼写检查器。将其关闭会删除该行。我从这里得到了答案
推荐阅读
- flutter - 生成特定数量的 Square nonce
- java - 我正在尝试查找每个部门的最新员工的薪水。一步使用 java 8
- xpath - 在 xpath 1.0 中查找以 4 位数字结尾的节点
- java - 使用 JavaFX 实现 3D 变换 Gizmo
- python-3.x - 用于 RandomForestRegressor 的超参数调整的 GA
- ubuntu - Ubuntu在启动时总是显示蓝屏
- linux - 从源文件夹复制到目标文件夹的脚本,如何从源文件夹中排除一个文件夹
- python - 模块“odoo.tools.pycompat”没有属性“integer_types”odoo 13
- javascript - jQuery DataTables 无法读取未定义的属性“mData”,但表是有效标记
- c# - 如何向 SOAP XML 添加新元素