div+css布局实现摄像头摄像机代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现摄像头摄像机代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <style> * { box-sizing: border-box; } body { font-size: 1.2vmin; background: #F5F26E; background-repeat: no-repeat; background-size: 1000px; background-position: 52% 12.8%; } .camera { width: 88em; height: 49.5em; position: absolute; top: 50%; left: 49.4%; transform: translate(-50%, -50%); background-repeat: no-repeat; } .camera .top { width: 93.7%; height: 14em; border-bottom: .5px solid #232323; position: absolute; top: 17%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(rgba(255, 255, 255, 0.6), #E3E3E5, #E4E4E4) 89% 0%/43em 0.6em, linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.3), #E4E4E4) 15% 86%/40em 1em, linear-gradient(to right, #F5F26E, #F5F26E 99.3%, #B0B0B0) 0% 0%/34.8em 3em, linear-gradient(to right, #E4E4E4, #E4E4E4) 0% 0%/95.4% 14em, linear-gradient(to right, #E8E7ED, #DFDFDF) 100% 100%/4em 9em; background-repeat: no-repeat; } .camera .top:after { content: ''; width: 5.8em; height: 5.8em; position: absolute; border-radius: 50%; top: 47.3%; left: 57.3%; transform: translate(-50%, -50%); background: radial-gradient(circle at 50% 50%, #B8160D, #E21F1B 90%), radial-gradient(circle at 50% 50%, #B8160D, #E21F1B); background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAk1BMVEXtHCT////sAADtEhztFyDsABDtDhnsAA7sAAnsBxXtDxrtFR7sAAf//Pz+8/P6zc7uPULuMDb++Pj4vr/71tf0lJbwXF/xa27vT1P84uL72dr1l5n1oKLzhIbye335x8j86Oj3tbftJi32rK3wVFj0jpDxb3LxZ2ruOj/4u7z719f3sbLwYGTydXjuMTfzgYPvRUriWEdIAAASYUlEQVR4nOVd6WKyOhDFYY0oal3qgrgV7aKt7/90l7AmIW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29dMQmVbDMvbPrZa6QTUPR06lWzr1rtWWino9i9671epdX3afowmHDY/iqd8spiFcO8E/dYcktouTfQ7p9xdAip5BczLD3+XqeYrm7ZP8H9wG3f1VMWQiba0QM4/sqXgQwFxERMuwtXkkrogp3q/d6k9eRNnLq5spCDC3jVRS/YmRUYmUwfJ0guKifPJfhqwjU7AbITIb0xRVdRVbhdi7Dnt19iqnATDmG3VeLYkVYkGHSP9NNiHs7CzPsNsV8ggUYdnmjQs5wnIIMuytu8oRMYYZdVRo5aqIMQzzeqm06KShFJh0UZthbG10zw+V0n/5DDHvWpFvOFJoUbXsoytDzF7t0GKH4RJDiDLukNXINmWoMiw6VbxxyiYEn5Rj2rM8uxFEN/qCQWhjiC6nbVhtKAUPtEYa9EWpXpiJUTAtWZ9gbXlpcRgXeS/dilmbY6031tpYRqWVETHWGveGtlWU04VZ6ASsy7PVmx+cXpcCkwACL2hgmA5CeBVTIU6qTYe/NEY1magB9cCp3a1Zm6N/r8BwbR4bFA03UDzD0juPyCRxlWFY7gHUw9Dk2u1f7D/J7mKHnG2eMEnsYCC7C0ZJPY9jr7f+gkSyVYrB3y7TF0DMBTsfaFxLB5FRFwadQC0MPsxsM6pM6MoDz4PGLURdDD4cF1BKvwlOM8m7OKYEaGeLpUgvx3VKFgCelLDImUVVArQw9DKcO4g4ULIC+DpozreXwEaibIcbqdBngwbUlyJnI+8RFfG3WA2iCIcbqsMWDzfJHWwQDNO7bQxPsMJpi6GM13Zw/oylYcjIFC4+80sKJGZ/nTY3DXjholGEAa7U72K7zvrh/TvBNDMdg4JVrH0arJwxf+g+TmhYPJ+SsLQAAAABJRU5ErkJggg==); background-size: cover; background-repeat: no-repeat; } .camera .top .viewbox { border-radius: 50%; width: 3em; height: 3em; position: absolute; top: 16%; left: 45%; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.4) 70%, #444442 73%) 50% 38%/0.4em 0.4em, radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.4) 70%, #444442 73%) 50% 65%/0.4em 0.4em, radial-gradient(50% 50% at 50% 50%, #232323 70%, #444442 73%) 50% 50%/3.1em 3.1em, radial-gradient(50% 50% at 50% 50%, #444442 70%, #232325 73%) 50% 50%/2em 2em, #444442; border: 2px solid #232323; background-repeat: no-repeat; } .camera .top .knob_left_one { width: 10.5em; height: 4em; position: absolute; z-index: 5; left: 11.4%; top: -6.7%; border-radius: 10px; border-top-left-radius: 15px; border-top-right-radius: 15px; background: linear-gradient(to right, #6b6a66, rgba(171, 170, 167, 0.7), #6b6a66) 0% 14.5%/100% 0.2em, linear-gradient(to right, #141313, #141313) 0% 100%/100% 0.2em, linear-gradient(to right, #fff 5%, #6D6C67 6%, #6D6C67 95%, #fff 96%) 0% 64%/100% 0.1em, linear-gradient(to right, #A8A8A8 3%, #E5E7E6, #A6A7A2, #8F8E8A 70%, #898884) 0% 100%/100% 3.3em; background-repeat: no-repeat; } .camera .top .knob_left_one:before { box-shadow: 0px 0px 3px 3px rgba(35, 35, 35, 0.4); width: 3.3em; height: 2.5em; top: 58%; left: 50%; transform: translate(-50%, -50%); content: ''; position: absolute; border-radius: 3px; border-top: .5px solid silver; border-bottom: .5px solid silver; background: repeating-linear-gradient(90deg, transparent, transparent 3px, #C9C8C4 3px, #C9C8C4 5px), linear-gradient(to right, #6b6a66, rgba(171, 170, 167, 0.7), #6b6a66) 0% 100%/100% 0.2em; } .camera .top .knob_left_one:after { width: 4.3em; height: .4em; top: 11%; left: 50%; transform: translate(-50%, -50%); content: ''; position: absolute; border-radius: 2px; border: .5px solid darkgray; border-top: .5px solid silver; border-bottom: .5px solid silver; background: linear-gradient(to right, #E4E4E4, #92918F, #FBFBFB, #92918F, #E4E4E4); } .camera .top .knob_left_two { width: 13em; height: 3.2em; position: absolute; z-index: 5; left: 25.5%; border-radius: 10px; background: linear-gradient(to right, #6b6a66, rgba(171, 170, 167, 0.7), #6b6a66) 0% 0%/100% 0.2em, linear-gradient(to right, #929292, transparent, #929292) 0% 50%/100% 90%, linear-gradient(to right, #141313, #141313, #929292) 0% 100%/100% 0.2em, #fff; background-repeat: no-repeat; } .camera .top .knob_left_two:after { width: 12.8em; height: 2.5em; top: 50%; left: 50%; transform: translate(-50%, -50%); content: ''; position: absolute; border-radius: 10px; border-top: .5px solid silver; border-bottom: .5px solid silver; background: repeating-linear-gradient(90deg, transparent, transparent 3px, #C9C8C4 3px, #C9C8C4 5px), linear-gradient(to right, rgba(107, 106, 102, 0.7), rgba(171, 170, 167, 0.7), rgba(107, 106, 102, 0.7)) 0% 100%/100% 0.2em; } .camera .top .rect { border-radius: 3px; width: 6.3em; height: 4.2em; position: absolute; top: 54.2%; left: 34%; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, #E4E4E4 50%, #232325 53%) 50% 50%/5em 5em, linear-gradient(to right, transparent, transparent, #272624) 0% 50%/18% 70%, #0B0A06; border: 2px solid #232323; background-repeat: no-repeat; } .camera .lens { z-index: 2; box-shadow: 6px 16px 18px rgba(0, 0, 0, 0.7); width: 33em; height: 33em; border: .5px solid #000; position: absolute; top: 58.4%; left: 56%; border-radius: 50%; transform: translate(-50%, -50%); background: #e6e6e6; background-repeat: no-repeat; } .camera .lens:after { border-radius: 50%; width: 33em; height: 33em; content: ''; position: absolute; background: -webkit-radial-gradient(50% 0%, 30% 50%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%); background-repeat: no-repeat; } .camera .lens .lens_inner { width: 32em; height: 32em; border: 6px solid #000; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #e6e6e6; } .camera .lens .lens_inner:before { content: ''; width: 28.4em; height: 28.4em; position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 50% 50%, #cfcfcf, #929292), radial-gradient(circle, red, #fdfdfd), #929292; background-repeat: no-repeat; } .camera .lens .lens_inner:after { content: ''; width: 27.6em; height: 27.6em; position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), black), #000; } .camera .lens .lens_inner .lens_inner_inner { width: 24em; height: 24em; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #e6e6e6; background: #232321; background: #414141; background: ra.........完整代码请登录后点击上方下载按钮下载查看
网友评论0