为了这个事整了一天,百度没结果,折腾默认CSS也没有结果,最后想着在Google上搜搜看,没想到一下就找到了,百度还需要努力啊~~
没有更改之前:
更改之后:
代码:添加CSS即可:
.text-area{
-fx-background-insets: 0;
-fx-background-color: transparent, white, transparent, white;
}
.text-area .content {
-fx-background-color: transparent, white, transparent, white;
}
.text-area:focused {
-fx-background-color: transparent, white, transparent, white;
}