css 播放暂停按钮实现_html/css_WEB-ITnose

WBOY
發布: 2016-06-24 11:26:04
原創
2199 人瀏覽過

效果图

 

 

 

 

html代码

 //播放按钮		<div id="playBtn" class="circle" style="margin: 20px 0px 10px 20px;">			<div class="circle_inner_play">			</div>		</div>		//暂停按钮		<div id="pauseBtn" class="circle" style="margin: 20px 0px 10px 85px;">			<div class="circle_inner_pause">				▐▐			</div>		</div>		//重置按钮		<div id="resetBtn" class="circle" style="margin: 20px 0px 10px 150px;">			<div class="circle_inner_reset">			</div>		</div>
登入後複製

  

css

                .circle {				border: solid 1px #23527C;				border-radius: 50px;				height: 50px;				position: absolute;				width: 50px;			}						.circle:hover {				transform: scale(1.1);				-webkit-transform: scale(1.1);				-moz-transform: scale(1.1);			}									.circle_inner_play {				content: "";				display: block;				width: 0;				height: 0;				border-style: solid;				border-width: 10px 0 10px 20px;				border-color: transparent transparent transparent #23527C;				position: absolute;				top: 50%;				left: 50%;				margin: -10px 0 0 -7px;			}						.circle_inner_pause {				position: absolute;				top: 50%;				left: 50%;				margin-left: -12px;				margin-top: -10px;				color: #23527C;			}						.circle_inner_reset {				width: 18px;				height: 18px;				background-color: #23527C;				margin: -9px 0 0 -9px;				position: absolute;				top: 50%;				left: 50%;			}
登入後複製

  

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!