JavaFx WebEngine - Overwriting a website's stylesheet with (local) files

后端 未结 3 1410
眼角桃花
眼角桃花 2020-12-11 12:51

I\'d like to customise the appearance of a website that I am loading, so I created a little test.css file that does nothing but changing the look of all table r

3条回答
  •  臣服心动
    2020-12-11 13:20

    setUserStyleSheetLocation()was designed for that very purpose: to let the user of the web page, style it as they want.

    Usage:

    webEngine.setUserStyleSheetLocation(styleSheetURL.toString());

提交回复
热议问题