我正在使用JavaFX,并且想自定义按钮。我看到了可以样式化的几个特征。在他们当中,我发现了两个我不认识的人。
.button {
-fx-padding: 5 22 5 22;
-fx-border-color: #121212;
-fx-border-width: 2;
-fx-border-radius: 5;
-fx-background-radius: 0;
-fx-background-color: #555555;
-fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif;
-fx-font-size: 11pt;
-fx-text-fill: #d8d8d8;
-fx-background-insets: 0 0 0 0, 0, 1, 2;
}
Run Code Online (Sandbox Code Playgroud)
这两个属性是什么:
-fx-background-insets: 0 0 0 0, 0, 1, 2;
Run Code Online (Sandbox Code Playgroud)
和
-fx-background-radius: 0;
Run Code Online (Sandbox Code Playgroud)
我看到了,但这对我来说是非常模糊的。
我看到如下代码:
section .data
db 'hello'
db 'h', 'e', 'l','l','o'
data_segment_size equ $-$$
Run Code Online (Sandbox Code Playgroud)
为什么data_segment_size等于25?我知道$和$$表示什么,但是根据我的书我不明白为什么这个变量是25。也许那本书里有一个错误。