软装设计培训一般多少钱seo是什么意思啊电商
软装设计培训一般多少钱,seo是什么意思啊电商,做网站免费送域名,南通单位网站建设今天#xff0c;有人问我是否知道摆脱JavaFX控件#xff08;分别是按钮#xff09;的焦点突出的方法#xff1a; 有关此问题的大多数文章和提示建议添加#xff1a; .button:focused {-fx-focus-color: transparent;
}但是使用这种样式#xff0c;仍然会留下这样的光芒… 今天有人问我是否知道摆脱JavaFX控件分别是按钮的焦点突出的方法 有关此问题的大多数文章和提示建议添加 .button:focused {-fx-focus-color: transparent;
} 但是使用这种样式仍然会留下这样的光芒 为了摆脱这种光芒通常还建议额外使用-fx-background-insets .button:focused {-fx-focus-color: transparent; -fx-background-insets: -1.4, 0, 1, 2;
} 但这导致呈现的按钮没有外部边框 与默认按钮样式相比 这仍然是一种“突出”。 为什么实际上有4个插入值 看一下modena.css定义的JavaFX默认样式可以modena.css更多信息 /* A bright blue for the focus indicator of objects. Typically used as the
* first color in -fx-background-color for the focused pseudo-class. Also
* typically used with insets of -1.4 to provide a glowing effect.
*/
-fx-focus-color: #f25f29;
-fx-faint-focus-color: #f25f2933; 显然不仅有一种焦点颜色-fx-focus-color而且还有-fx-faint-focus-color 它旨在创建这种发光效果设置-fx-focus-color:transparent;时仍然存在。 仔细查看.buttonfocused伪类在modena.css .button:focused {-fx-background-color: -fx-faint-focus-color, -fx-focus-color, -fx-inner-border, -fx-body-color; -fx-background-insets: -2, -0.3, 1, 2;-fx-background-radius: 7, 6, 4, 3;
} 玩一些极端的色彩可以揭示这种安排 .button:focused {-fx-focus-color: red;-fx-faint-focus-color: green;-fx-inner-border: blue;-fx-body-color: orange;-fx-background-color: -fx-faint-focus-color, -fx-focus-color, -fx-inner-border, -fx-body-color; -fx-background-insets: -2, -0.3, 1, 2;-fx-background-radius: 7, 6, 4, 3;
} 回到主题可能是删除焦点突出显示的一个聪明方法是对.buttonfocus也使用默认按钮样式其他控件使用相同的方法 .button:focused {-fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color; -fx-background-insets: 0, 1, 2;-fx-background-radius: 5, 4, 3;
}翻译自: https://www.javacodegeeks.com/2014/11/how-to-get-rid-of-focus-highlighting-in-javafx.html
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/pingmian/89897.shtml
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!