GridPane:更改网格线颜色

时间:2017-09-12 07:49:25

标签: javafx

如何更改网格线颜色/我可以更改网格线颜色? 似乎无法找到css解决方案。

enter image description here

1 个答案:

答案 0 :(得分:1)

你可以使用这个css对我有用:

<script> 
$('form').submit(function(e) 
{
  alert('submit intercepted');
  e.preventDefault(e);
  var u = { 'email': $('#email').val() };
  $.ajax({
      url: 'test2.php',
      type: 'POST',
      //dataType: 'string',
      data: u,
      success: function (response) {
        //get response from your php page (what you echo or print)
        console.log(response);

        if (response === 'true') {
          $('#status').append('<p>The email is ok to use and the row has been inserted </p><p>' + response);

        } else {
          console.log('Email does exist ');

        }
      },
      error: function(jqXHR, textStatus, errorThrown) {
        console.log(textStatus, errorThrown);

      }
    });
});
</script>

然后你用场景构建器或myGrid.getStyleClass()附加css类.add(“mygridStyle”);