JavaScript:電卓の見た目

JavaScript

style.css

*{
	margin: 0;
	padding: 0;
}

body{
	font-family: 'Hiragino Sans', 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', meiryo, sans-serif;
}

#frame{
	width: 320px;
	height: 480px;
	text-align: center;
	background-color: #ddd;
	background-image: url("wood.png");
}

#display{
	text-align: right;
	margin: 10px;
	margin-top: 30px;
	padding: 5px;
	border: solid 1px #000;
	font-size: 38px;
	width: 288px;
}

/* for iPhone */
input[type="button"]{
	-webkit-appearance: none;
}

#button_form input[type="button"]{
	width: 62px;
	height: 62px;
	font-size: 20px;
	margin: 5px;
	background-color: #fff;
	border: solid 1px #000;
	border-radius: 31px;
}

利用している背景画像: wood.png

コメント