ruler实现一个刻度尺效果代码

代码语言:html

所属分类:拖放

代码描述:ruler实现一个刻度尺效果代码

代码标签: 刻度尺 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<style>
	* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}

	.ruler-wrap {
		width: 100%;
		max-width: 600px;
		/*height: 60px;*/
		line-height: 1px;
		overflow: hidden;
		margin: 0 auto 50px;
	}

	.text-input{
		display: block;
		width: 100px;
		height: 30px;
		border-radius: 5px;
		background: #f6f6f6;
		border: none;
		text-align: center;
		font-size: 14px;
		color: #4142cc;
		font-weight: bold;
		letter-spacing: 1px;
		margin: 0 auto;
	}
	.text-input:focus{
		outline: none;
	}
</style>
</head>
<body>

<div style="height:50px;"></div>

<!-- 刻度尺容器(必要的) -->
<div class="ruler-wrap" id="ruler"></div>

<!-- 刻度尺容器(必要的) -->
<div class="ruler-wrap" style="width: 90%;" id="ruler2"></div>


<input id="rulerText3" class="text-input" type="text" readonly value="">

<!-- 刻度尺容器(必要的) -->
<div class="ruler-wrap" style="width: 80%;" id="ruler3"></div>
<script type="text/javasc.........完整代码请登录后点击上方下载按钮下载查看

网友评论0