|
|
请马上登录,朋友们都在花潮里等着你哦:)
您需要 登录 才可以下载或查看,没有账号?立即注册
x
<style>
.qipai {
margin:auto;
width: 640px;
height: 354px;
background: url('https://pic.imgdb.cn/item/6293205c0947543129205d7c.jpg') no-repeat;
position: relative;
}
.hy {
width: 100px;
height: 30px;
position: absolute;
left: 300px;
bottom: 200px;
}
</style>
<div class="qipai">
<div class="hy">
<p><span id="num" style="margin: 10px; width: 20px;">?</span>
<input id="subIt" type="button" value=" 您的牌点 " style="outline:none" />
</p>
</div></div>
<script>
let num = (min, max) => Math.floor(Math.random() * (max-min+1)) + min;
document.querySelector('#subIt').onclick =() => document.querySelector('#num').innerHTML = num(1,
10);
</script> |
|