js实现字母转换成莫尔斯鼓节奏效果代码

代码语言:html

所属分类:其他

代码描述:js实现字母转换成莫尔斯鼓节奏效果代码

代码标签: 换成 尔斯 节奏 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
body,
html {
	height: 100%;
	background-color: #0a81ab;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
}

h1 {
	color: white;
	text-transform: uppercase;
	font-weight: 200;
	text-align: center;
}

.inputform {
	width: 300px;
	margin: 0 auto 2rem;
}

.inputform input {
	width: 279px;
	height: 40px;
	font-size: 1.4em;
	font-weight: 300;
	border: none;
	margin-bottom: 1rem;
	padding: 0 14px;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
}

.inputform .buttons {
	display: flex;
	width: 308px;
	justify-content: space-between;
}

.inputform .buttons button {
	width: 140px;
	height: 40px;
	text-transform: uppercase;
	background-color: #0c4271;
	border: 0;
	color: white;
	font-weight: 100;
	letter-spacing: 4px;
}

.inputform .buttons #convertor {
	background-color: #0a1931;
	color: #a2dbfa;
}

.inputform .buttons #clearbutton {
	background-color: #a2dbfa;
	color: #0a1931;
}

#showtext {
	letter-spacing: 0.4em;
	text-align: center;
	color: white;
	font-weight: 900;
	font-size: 3rem;
	padding-left: 30px;
	transitio.........完整代码请登录后点击上方下载按钮下载查看

网友评论0