First look at what JavaFX CSS is: An explanation of the official website
JavaFX cascading Style Sheets (CSS) is based on the website CSS version 2.1 [1] with some additions from current Work on version 3 [2]. JavaFX CSS also have some extensions to CSS in support of specific JavaFX features. The goal for JavaFX CSS-is-to-allow web developers already familiar-CSS for HTML-to-use CSS to customize and develop Themes for JavaFX controls and scene graph objects in a natural the. The JavaFX CSS support and extensions has been designed to allow JavaFX CSS style sheets to being parsed cleanly by any comp Liant CSS Parser, even though it might not support JavaFX extensions. This enables the mixing of CSS styles for JavaFX and for other purposes (such as for HTML pages) to a single style sheet . To the end, all JavaFX property names has been prefixed with a vendor extension of "-fx-". Even properties, might seem to being compatible with standard HTML CSS having been prefixed, because JavaFX has somewhat di Fferent semantics for their values.
That is, you originally wrote the Web app that set of CSS does not apply.
You can't use Width,height,float.
In my actual optimization, I used padding to set it up.
As for the position of the block element, I let the Java developer use coordinates to set the front end powerless.
Front-end block elements He's got it straight for you.
Take a look.
Accordionbuttonbuttonbasecellcheckboxcheckmenuitemchoiceboxcolorpickercomboboxcontrolhyperlinkindexedcelllabellabeledlist Celllistviewmenumenubarmenubuttonmenuitemmenuitembasepaginationpasswordfieldprogressbarprogressindicatorradiobuttonradiom Enuitemscrollbarscrollpaneseparatorslidersplitmenubuttonsplitpanetabpanetableviewtextareatextinputcontroltextfieldtitledp Anetogglebuttontoolbartooltiptreecelltreeview
His style is set in the form of FX definition, which is actually encapsulated.
JavaFX CSS has integrated css3/css2 but CSS3 's animated properties are not supported by one
There is a property that
Box-shadow
JavaFX CSS Magic play