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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

怎么讓class為:diamond隨機(jī)位置?

怎么讓class為:diamond隨機(jī)位置?

19990000 2017-10-28 13:20:31
<!DOCTYPE?html> <html?lang="en"> <head> ????<meta?charset="UTF-8"> ????<title>聽指令的小方塊2</title> ????<style> ????????*{ ????????????padding:0; ????????????margin:0; ????????} ????????table{ ????????????border:2px?solid?#000000; ????????????border-collapse:?collapse; ????????????margin:50px?auto; ????????} ????????table?th{ ????????????width:50px; ????????????height:50px; ????????????-webkit-box-sizing:?border-box; ????????????-moz-box-sizing:?border-box; ????????????box-sizing:?border-box; ????????????border:1px?solid?#ccc; ????????} ????????.red{ ????????????width:50px; ????????????height:10px; ????????????background:?red; ????????} ????????.blue{ ????????????width:50px; ????????????height:40px; ????????????background:?blue; ????????} ????????.rool{ ????????????width:415px; ????????????margin:0?auto; ????????} ????????.rool?.btn{ ????????????width:80px; ????????????height:30px; ????????????margin:10px; ????????????color:?#fff; ????????????background:blue; ????????????border:1px?solid?blue; ????????????border-radius:?5px; ????????????cursor:?pointer; ????????????transition:?color?.3s,background-color?.3s;?/*設(shè)置兩個(gè)*/ ????????????/*過渡屬性??需要時(shí)間???速度曲線????延遲開始時(shí)間*/ ?} ????????.rool?.btn:hover{ ????????????background:?#fff; ????????????color:?blue; ????????} ????</style> </head> <body> ????<table> ????????<tr> ????????????<th></th> ????????????<th>1</th> ????????????<th>2</th> ????????????<th>3</th> ????????????<th>4</th> ????????????<th>5</th> ????????????<th>6</th> ????????????<th>7</th> ????????????<th>8</th> ????????????<th>9</th> ????????????<th>10</th> ????????</tr> ????????<tr> ????????????<th>1</th> ????????????<th?class="diamond"?id="diamond"?style="transform:rotate(0deg);??position:?relative;?top:0;?left:0;"> ????????????????<div?class="red"></div> ????????????????<div?class="blue"></div> ????????????</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>2</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>3</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>4</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>5</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>6</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>7</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>8</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>9</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????????<tr> ????????????<th>10</th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????????<th></th> ????????</tr> ????</table> ????<div?class="rool"> ????????<button?type="button"?class="btn"?id="tralef">TRA?LEF</button><!--左移動(dòng),方向不變--> ?<button?type="button"?class="btn"?id="tratop">TRA?TOP</button><!--上移動(dòng),方向不變--> ?<button?type="button"?class="btn"?id="trarig">TRA?RIG</button><!--右移動(dòng),方向不變--> ?<button?type="button"?class="btn"?id="trabot">TRA?BOT</button><!--下移動(dòng),方向不變--> ?<button?type="button"?class="btn"?id="movlef">MOV?LEF</button><!--左旋轉(zhuǎn),左移動(dòng)--> ?<button?type="button"?class="btn"?id="movtop">MOV?TOP</button><!--上旋轉(zhuǎn),上移動(dòng)--> ?<button?type="button"?class="btn"?id="movrig">MOV?RIG</button><!--右旋轉(zhuǎn),右移動(dòng)--> ?<button?type="button"?class="btn"?id="movbot">MOV?BOT</button><!--下旋轉(zhuǎn),下移動(dòng)--> ?</div> </body> </html>
查看完整描述

1 回答

?
咫尺天涯0701

TA貢獻(xiàn)4條經(jīng)驗(yàn) 獲得超1個(gè)贊

css并沒有提供隨機(jī)函數(shù)的接口 你可以用js來控制

查看完整回答
反對(duì) 回復(fù) 2017-11-17
  • 1 回答
  • 1 關(guān)注
  • 1418 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)