我正在尋找洗掉 JavaFX CSS 中選定選項卡周圍的藍色選擇區域。
這是我的問題

還有我的 CSS:
.tab-pane .tab-header-area .tab-header-background {
-fx-opacity: 0;
}
.tab-pane
{
-fx-tab-min-width:88px;
}
.tab-pane .tab
{
-fx-background-color: gray;
-fx-background-insets: 0 1 0 1,0,0;
}
.tab-pane .tab:selected
{
-fx-background-color: #f10707;
}
.tab .tab-label {
-fx-alignment: CENTER;
-fx-text-fill: white;
-fx-font-size: 14px;
-fx-font-family: "Arial Rounded MT Bold";
}
.tab:selected .tab-label {
-fx-alignment: CENTER;
-fx-text-fill: white;
}
任何幫助表示贊賞。
uj5u.com熱心網友回復:
嘗試
.tab-pane:focused .tab:selected .focus-indicator {
-fx-border-width: 0 ;
-fx-border-color: transparent;
-fx-border-insets: 0;
-fx-border-radius: 0;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/403806.html
標籤:
上一篇:添加整數字串:回圈的索引越界例外
下一篇:使用for回圈洗掉字串的前半部分
