用html5做界面,javascript调用摄像头实例,web页面调用摄像头 示例源码

【实例简介】

【实例截图】

72e96c6255503051cf7e3ff62f6f20ef.png

【核心代码】

拍照

#camera{width:598px; height:525px;}

#cam{width:100%; height:66px; display:block; position:absolute; top:0; left:0; cursor:pointer}

#webcam{width:520px; height:370px; margin:66px auto 22px; line-height:360px; background:#ccc; color:#666; text-align:center}

.button_pane{text-align:center;}

.btn_blue,.btn_green{width:99px; height:38px; line-height:32px; margin:0 4px; border:none; display:inline-block; text-align:center; font-size:14px; color:#fff !important; text-shadow:1px 1px 1px #277c9b; background:url(images/buttons.png) no-repeat}

.btn_green{background:url(images/buttons.png) no-repeat right top;text-shadow:1px 1px 1px #498917;}

.hidden{display:none}

#photos{width:80%; margin:40px auto}

#photos:hover a{opacity:0.5}

#photos a:hover{opacity:1}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值