第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我想把label的樣式換成這樣的?。?!急急急,在線等

我想把label的樣式換成這樣的?。?!急急急,在線等

慕神0852026 2016-07-20 14:28:03
原始圖片是這樣的我想修改成這樣的請大神幫幫忙?
查看完整描述

4 回答

已采納
?
剛毅87

TA貢獻345條經(jīng)驗 獲得超309個贊

<!DOCTYPE?html>
<html>

	<head>
		<meta?charset="UTF-8">
		<title>Insert?title?here</title>
		<style?type="text/css">
			div?{
				width:?30px;
				height:?30px;
				background:?pink;
				border-radius:?50%;
				text-align:?center;
				line-height:?35px;
				color:?white;
				margin-top:?52px;
				display:?inline-block;
			}
		</style>
	</head>

	<body>
		<div?class="radius">√</div>
		<div>√</div>
		<div>√</div>
		<div>√</div>
		<div>√</div>
		<div>√</div>
		<div>√</div>
		<div>√</div>
		<div>√</div>
		<div>√</div>
	</body>
	<script?type="text/javascript">
		var?div1?=?document.getElementsByTagName("div");
		for?(var?i?in?div1)?{
			div1[i].onclick?=?function()?{
				this.style.backgroundColor?==?"blue"???this.style.backgroundColor?=?"pink"?:?this.style.backgroundColor?=?"blue";
			}
		}
		
	</script>

</html>


查看完整回答
1 反對 回復 2016-07-20
?
剛毅87

TA貢獻345條經(jīng)驗 獲得超309個贊

我不會改 lable 的樣式,但是我可以以另一種方法實現(xiàn).代碼如下

<!DOCTYPE?html>
<html>

	<head>
		<meta?charset="UTF-8">
		<title>Insert?title?here</title>
		<style?type="text/css">
			.radius?{
				width:?30px;
				height:?30px;
				background:?pink;
				border-radius:?50%;
				text-align:?center;
				line-height:?35px;
				color:?white;
			}
		</style>
	</head>

	<body>
		<div?class="radius">√</div>
		</div>
	</body>
	<script?type="text/javascript">
		var?div1?=?document.getElementsByClassName("radius");
		div1[0].onclick?=?function()?{
			this.style.backgroundColor?==?"blue"???this.style.backgroundColor?=?"pink"?:?this.style.backgroundColor?=?"blue";
		}
	</script>

</html>


查看完整回答
1 反對 回復 2016-07-20
  • 慕神0852026
    慕神0852026
    問什么我復制多個就安不了了,只能按到第一個,什么原因?
  • 剛毅87
    剛毅87
    div1[0],這個你應該是直接復制粘貼的. 當有多個時,就應該在 在點擊事件外,加上 for 循環(huán).給每一個都添加點擊事件
  • 慕神0852026
    慕神0852026
    要怎樣加?不明白
?
趙志廣

TA貢獻53條經(jīng)驗 獲得超17個贊

.alizi-radio-group{position:relative;display:inline-block;padding-left:34px;line-height:30px;padding-right:20px;}
.alizi-radio{position:absolute;left:0;top:0;width:?30px;}
.alizi-radio?label{display:inline-block;cursor:pointer;margin-left:?0px;}
.alizi-radio?input{opacity:0;position:absolute;left:0;top:3px;width:?25px;height:?25px;}
.alizi-radio?input?+?label:after{display:inline-block;content:'';width:20px;height:20px;border:1px?solid?#ccc;border-radius:11px;cursor:pointer;vertical-align:middle}
.alizi-radio?input:checked?+?label:after{background:#52d40b?url(../images/icon-right.png)?center?no-repeat;background-size:16px;border-color:#52d40b}
<span?class="alizi-radio-group">????
<span?class="alizi-radio"><input?id="ys0"?name="ys"?type="radio"?value="未拆封iPhone?6s?16GB?金色"?name="item_params"?checked><label?for="選擇顏色0"></label></span>????
未拆封iPhone?6s?16GB?金色</span>
<span?class="alizi-radio-group">????
<span?class="alizi-radio"><input?id="ys1"?name="ys"?type="radio"?value="未拆封iPhone?6s?16GB銀色"?name="item_params"?><label?for="選擇顏色1"></label></span>????
未拆封iPhone?6s?16GB銀色</span>
<span?class="alizi-radio-group">????
<span?class="alizi-radio"><input?id="ys2"?name="ys"?type="radio"?value="未拆封iPhone?6s?16GB玫瑰金色"?name="item_params"?><label?for="選擇顏色2"></label></span>????
未拆封iPhone?6s?16GB玫瑰金色</span>
<span?class="alizi-radio-group">????
<span?class="alizi-radio"><input?id="ys3"?name="ys"?type="radio"?value="未拆封iPhone?6s?16GB?深空灰色"?name="item_params"?><label?for="選擇顏色3"></label></span>????
未拆封iPhone?6s?16GB?深空灰色</span>


查看完整回答
反對 回復 2016-07-20
?
Raelovejava

TA貢獻10條經(jīng)驗 獲得超6個贊

用css樣式和背景圖片來完成

查看完整回答
反對 回復 2016-07-20
  • 4 回答
  • 1 關注
  • 2359 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號