<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
.circle {
width: 100px;
height: 100px;
border: 20px solid #000;
border-radius: 50%;
border-left-color: transparent;
border-top-color: transparent;
transform: rotate(-45deg);
}
</style>
</head>
<body>
<div class="circle"></div>
</body>
</html>
這個半圓用SVG寫的話也是挺簡單的。
題主你好,按照我的想法。
可以在click時通過indexOf判斷,點擊的標簽是否已在需要顯示的標簽數(shù)組內(nèi),假如已經(jīng)有了,則不再需要添加。否在,push進去,然后渲染需要顯示的標簽數(shù)組即可
var nummmm = 0;
$(document).ready(function () {
var timer
$(window).scroll(function () {
clearTimeout(timer)
timer=setTimeout(function(){
if ($(window).scrollTop() > 100) {
$('.box2').addClass('animation-show');
console.log(nummmm++);
}
if ($(window).scrollTop() > 600) {
$('.box3').addClass('animation-show');
console.log('test2');
}
},200)//這個時間你可以測試下,選擇一個適合的時間
});
});
字節(jié)解決了,但是還是不知道什么原理,先說下解決方式吧:
就是在url的#前面加個index.jsp,原先默認就是調(diào)用index.jsp這個路口的,不知道為什么iframe沒有進去,
代碼:
$scope.divUrl = $sce.trustAsResourceUrl(basePath+"index.jsp#/index/preview/3ad65a354eb74571bace89ce04d0a868/false/0/0");先掛個vConsole,看下有沒有什么報錯
查資料看有人說要在dom結(jié)構(gòu)完全加載完成之后才能操作,但是試了之后發(fā)現(xiàn)還是不行。
就是這原因,看到那個感嘆號了么,點開一下。你打印的時候里面還沒值,你打印的是引用,查看的時候生成快照才有值。要么斷點要么JSON.stringify()轉(zhuǎn)一下。
performace是瀏覽器自動寫在window對象上的
所以你只需要在頁面加載完成的時候,調(diào)用window.performace.getEntries(),就能得到一個數(shù)組,其中是所有請求的耗時情況,然后從中找到你的baidu請求對象,用下面的方法就能得到請求的時間情況
// 計算加載時間
function getEntryTiming (entry) {
var t = entry;
var times = {};
// 重定向的時間
times.redirect = t.redirectEnd - t.redirectStart;
// DNS 查詢時間
times.lookupDomain = t.domainLookupEnd - t.domainLookupStart;
// 內(nèi)容加載完成的時間
times.request = t.responseEnd - t.requestStart;
// TCP 建立連接完成握手的時間
times.connect = t.connectEnd - t.connectStart;
// 掛載 entry 返回
times.name = entry.name;
times.entryType = entry.entryType;
times.initiatorType = entry.initiatorType;
times.duration = entry.duration;
return times;
}
解決圖片拉伸
width:auto;
height:auto;
max-width:100%;
max-height:100%
writing-mode 了解一下
<!DOCTYPE html>
<html>
<head>
<style>
#mainBox {
border: 1px #f00 solid;
width: 300px;
height: 250px;
writing-mode: tb-lr;/*IE寫法*/
writing-mode: vertical-lr;
}
#mainBox a {
margin: 5px;
padding: 0px;
display: inline-block;
width: 30px;
height: 30px;
border: 1px #00f solid;
writing-mode: lr-tb;
}
</style>
</head>
<body>
<div id="mainBox">
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">5</a>
<a href="#">6</a>
<a href="#">7</a>
<a href="#">8</a>
<a href="#">9</a>
<a href="#">10</a>
</div>
</body>
</html>我也遇到這個問題,filed 哈哈 我是上傳圖片的時候遇到的 這個是后臺的問題吧 我的是后臺解決的 當時還想著寫一個博客記錄一下 沒有記錄
恰好在練習css3 比較粗糙,大體思路同樓上
<style>
*{
background: #080808;
padding: 0;
margin: 0;
box-sizing: border-box;
}
.box{
width: 400px;
height: 400px;
position: relative;
margin: 300px;
}
@-webkit-keyframes spin-a{
form{
-webkit-transform:rotate(0deg)
}
to{
-webkit-transform:rotate(360deg)
}
}
@-webkit-keyframes spin-b{
form{
-webkit-transform:rotate(10deg)
}
to{
-webkit-transform:rotate(350deg)
}
}
.a{
position: absolute;
left: 0;
top: 0;
width: 400px;
height: 400px;
border-radius:50%;
border: 15px solid #0B3B3C;
border-top: 10px solid #080808;
border-bottom: 10px solid #080808;
-webkit-animation: spin-a 2s infinite linear;
background-color: #091717;
/* background-image: -webkit-radial-gradient(circle,#fff 160px,#091717 200px); */
}
.b{
position: absolute;
left: 25px;
top: 25px;
width: 350px;
height: 350px;
border-radius:50%;
border: 6px solid #17F6FB;
border-top: 10px solid #091717;
border-bottom: 10px solid #091717;
-webkit-animation: spin-a 3s infinite linear;
background-color: #0A3334;
/* background-image: -webkit-radial-gradient(circle,#fff 150px,#091717 180px); */
}
.c{
position: absolute;
left: 45px;
top: 45px;
width: 310px;
height: 310px;
border-radius:50%;
border: 6px solid #17F6FB;
border-top: 10px solid #0A3334;
border-bottom: 10px solid #0A3334;
-webkit-animation: spin-a 6s infinite linear;
background-color: #0A3334;
background-image: -webkit-radial-gradient(circle,#1F8989 100px,#0A3334 180px);
}
.d{
position: absolute;
left: 80px;
top: 80px;
width: 240px;
height: 240px;
border-radius:50%;
border: 15px solid #17F6FB;
border-top: 10px solid black;
border-bottom: 10px solid black;
-webkit-animation: spin-a 1.5s infinite linear;
background-color: black;
}
.e{
position: absolute;
left: 110px;
top: 110px;
width: 180px;
height: 180px;
border-radius:50%;
border: 4px solid #101D1D;
}
.f{
position: absolute;
left: 120px;
top: 120px;
width: 160px;
height: 160px;
border-radius:50%;
background-color: #080808;
}
</style>
\
<div class="box">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
<div class="d"></div>
<div class="e"></div>
<div class="f"></div>
</div>
當然可以,樓上都說得很清楚了
<Link to={`/detail/${item}`}>to detail {item}</Link> {/*問題在這*/}
ES6的模板字符串的反引號
直接這樣也可以,不過我一般這樣寫(scss形式):
#name {
>div:nth-child(2) {
background-color: red;
}
}<router-view v-if="!$route.meta.keepAlive || isRouteAlive"></router-view>
這么不行嗎
高版本的瀏覽器都沒有管autocomplete了,具體解釋可以看stackoverflow
1、該控件兼容性差,IE和Firefox直接不支持該type。
2、請注意datatime-local后面有一個local單詞,這是本地的意思,也就是說和你系統(tǒng)當前使用的默認語言有關(guān)系,如果系統(tǒng)是英文的,那么這兒也就是英文的了。
這是MDN的相關(guān)解釋鏈接:https://developer.mozilla.org...
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學校辦產(chǎn)業(yè)為響應國家深化產(chǎn)教融合/校企合作的政策,積極推進“中國制造2025”,實現(xiàn)中華民族偉大復興的升級產(chǎn)業(yè)鏈。利用北京大學優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓領(lǐng)域的先行者
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務(wù)負責iOS教學及管理工作。
浪潮集團項目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗,技術(shù)功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。