自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (1)
  • 收藏
  • 关注

原创 html中的相对位置和绝对位置

一、相对路径相对路径是指目标相对于当前文件的路径,网页结构设计中多采用这种方法来表示目标的路径。相对路径有多种表示方法,其表示的意义不尽相同。表示方法如下:./ :代表文件所在的目录(可以省略不写)../ :代表文件所在的父级目录../../ :代表文件所在的父级目录的父级目录/ :代表文件所在的根目录二、绝对路径如 \F:\Html\index.html...

2019-09-09 20:54:57 349

原创 HTML 概念及基础(标题|段落|格式化)

一个简单的HTML实例:<html> <body> <h1>我的第一个标题</h> <p>我的第一个段落</p> </body></html>html指的是超文本标记语言(Hyper Text Markup Language),不是编程语言而是...

2019-09-09 20:42:46 236 1

原创 [Java基础知识点]字符串和数字间的转换

数值型字符串转换为数值:int intValue=Integer.parseInt(intString);字符串转换为double值:double doubleValue=Double,parseDouble(doubleString)可以将数值转换为字符串,只需要简单使用字符串的连接操作符String s=number+"";

2018-03-07 16:56:36 146

原创 [JAVAFX基础]扫雷经典入门低配版

寒假没有好好写代码,真不知道我以后怎么能当一个合格的程序员..不过趁着临近开学之际,把上个学期选做的Java课程设计给稍微稍微修改了一下下做不出来的时候抓耳挠腮,做出来以后才发现也没那么难!不过和大佬的作品是完完全全无法相提并论的,如果用一个字来说明就是丑虽然功能都实现了,但是就是丑。拼拼凑凑的不到320行代码,差点要了我的老命! 首先就是这个简单的游戏选择界面,有三种...

2018-03-01 21:43:28 1975 1

简易版扫雷代码Java扫雷入门

简易版扫雷程序代码 public class MineSweeperGame2 extends Application { Cell[][] cell; int totalMines=0; int markBomb=0; //总的地雷数量,简单会有10个,一般会有40个,困难99个 int showMines=10; String s=String.valueOf(showMines); Label tips=new Label("Game is running!"); Label showMineNum=new Label("mines: "+s); public void start(Stage primaryStage){ Stage startStage=new Stage(); //选择按钮的界面 Button startButton=new Button("RESTART"); Button chooseeasy=new Button(" EASY (10mines)"); Button choosenormal=new Button("NORMAL(40mines)"); Button choosehard=new Button(" HARD(99mines)"); BorderPane primaryPane=new BorderPane(); HBox startPane=new HBox(15); StackPane topButtonPane=new StackPane(startButton); StackPane topButtonPane2=new StackPane(showMineNum); StackPane buttomPane=new StackPane(tips); HBox topPane=new HBox(50); topPane.getChildren().addAll(topButtonPane,topButtonPane2); primaryPane.setTop(topPane); tips.setStyle("-fx-border-color:red;-fx-background-color:white;"); showMineNum.setStyle("-fx-border-color:black"); primaryPane.setBottom(buttomPane); buttomPane.setPadding(new Insets(15,15,15,15)); topPane.setPadding(new Insets(15,15,15,15)); startPane.setPadding(new Insets(15,15,15,15)); startPane.getChildren().add(chooseeasy); startPane.getChildren().add(choosenormal);

2018-07-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除