沒有效果的原因是點擊按鈕被排擠到其他地方去了,加上下面的css代碼就可以,需要觸發(fā)點擊事件啊
.button {
position: fixed;
left: 20px;
top: 30px;
}
button {
padding: 5px 10px;
outline: none;
background-color: #CAE1FF;
color: #fff;
border: 1px solid #ccc;
cursor: pointer;
?}
.button {
position: fixed;
left: 20px;
top: 30px;
}
button {
padding: 5px 10px;
outline: none;
background-color: #CAE1FF;
color: #fff;
border: 1px solid #ccc;
cursor: pointer;
?}
2018-10-29
最贊回答 / 慕神2178781
我覺得不需要用到3d,我是這么寫//translate:移動,transform的一個方法通過 translate() 方法,元素從其當前位置移動,根據(jù)給定的 left(x 坐標) 和 top(y 坐標)?'transform': 'translate(-'+(width * 2)+'px)',
2018-10-14
最新回答 / 笑傲獨行俠
getValue是一個函數(shù),這里是調(diào)用getValue函數(shù),你看一下前面43行定義了函數(shù)。這個函數(shù)的參數(shù)是一個className,getValue函數(shù)里面通過解析類選擇器,來獲取其中的寬高值,因此這里傳參最好傳類選擇器的全名".className"
2018-09-18
最新回答 / 慕仙7196496
你可以把代碼,放到網(wǎng)頁中運行下,然后檢查該網(wǎng)頁,點擊你自己所需要看的那幾行代碼,頁面會出現(xiàn)對應的區(qū)域
2018-09-14
最新回答 / 慕的地1248244
反正就是絕對定位? 脫離文檔流? 然后再用Z-index 放置層數(shù)就對啦。? 不然你還要用盒子裝起來同個頁面盒子就多許多啦太多就難操作了
2018-09-03
最新回答 / 慕虎5292548
在index.html中,引入
<script?src="https://cdn.bootcss.com/jquery.transit/0.9.12/jquery.transit.js"></script>
2018-09-02