body > p:first-child動(dòng)態(tài)component <component :is="type"/>
xAxis.boundaryGap:true
<Route strict exact path="/user/details" component={Details} />
把其中的exact去掉試試。
我遇到類似的問題,就是這么解決的。
你好,我也遇到了類似的問題,請(qǐng)問您最后如何解決的?
@-webkit-keyframes goNext是webkit為核心的瀏覽器
一般pc端的寫法都是
@-moz-keyframes
@-o-keyframes
@keyframes
@-webkit-keyframes
個(gè)人都是這樣寫的ie我沒有測(cè)試過你可以試試
已經(jīng)解決,在app.module.ts的imports里面刪除進(jìn)行懶加載的模塊
// 懶加載
{
path: 'set',
loadChildren: 'app/setting/setting.module#SettingModule'
},
// app.module.ts
@NgModule({
declarations: [
AppComponent
],
imports: [
FormsModule,
// 非懶加載模塊
PopupModule,
CoreModule,
PipeModule,
RoutesModule,
CashRegisterModule,
// 懶加載模塊
// SettingModule
],
bootstrap: [AppComponent]
})
export class AppModule {}
同時(shí),在setting.route.module.ts里面path寫空:
// setting.route.module.t
@NgModule({
imports:
[
RouterModule.forChild([
{
// path: 'set',
path: '',
component: SettingComponent
}
])
],
exports:
[
RouterModule
],
providers:
[]
})
export class SettingRouteModule
{
}
原來(lái)的寫法其實(shí)并沒有實(shí)現(xiàn)懶加載,但是angular4不是出錯(cuò),但是在angular5就會(huì)提示懶加載的錯(cuò)誤
在v-for 循環(huán)中,會(huì)出現(xiàn) index ,只需要點(diǎn)擊的時(shí)候,把index 、id 傳遞到方法中即可
<ul>
<li v-for="(item,index) in dataArr" @click="del(index,item.id)" :key="item.id">
{{item.name}}
<li/>
</ul>
使用方法接受參數(shù):index 、id
methods:{
del(index,id){
console.log(id)//當(dāng)前id
this.dataArr.splice(index,1); //刪除當(dāng)前行
}
}
https://segmentfault.com/q/10...
能自己動(dòng)手搜索一下嗎
更新一下吧,1.19版本已經(jīng)沒有這個(gè)問題了。我另一臺(tái)機(jī)器上的1.16版確實(shí)存在這個(gè)問題。
選擇縮放時(shí)的起始值和結(jié)尾值,根據(jù)這兩個(gè)值再次查詢數(shù)據(jù)庫(kù)詳細(xì)信息。
獲取這兩個(gè)值,使用開始值:option.dataZoom.start結(jié)束值:option.dataZoom.end,我也在試用中,。。。
用定位要注意定位父級(jí)
<view class='imgbox'>
<image class='ico' mode='scaleToFill' src='{{ico}}></image>
<text class="txt">{{text}}</text>
</view>
.imgbox{
position: relative;
width: 600rpx;
height: 400rpx;
}
.ico{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.txt{
position: relative;
}
其實(shí)你可以直接將其display:none隱藏的,用label for id 來(lái)綁定input,點(diǎn)擊label來(lái)控制 radio
input[type="radio"]{
opacity: 0;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="normalize.css"/>
<style type="text/css">
input[type="checkbox"]:checked+label:after{
content: '\2714';
background-color: #ff5757;
color: #FFF;
border-color: #ff5757;
}
input[type="checkbox"]{
display: none;
}
label:after{
content: '';
position: absolute;
left: 0;
top: 0;
width: 18px;
height: 18px;
border: 1px solid #CCC;
box-sizing: border-box;
line-height: 18px;
text-align: center;
border-radius: 3px;
font-size: 14px;
}
label{
position: relative;
padding-left: 25px;
box-sizing: border-box;
line-height: 20px;
font-size: 14px;
height: 20px;
}
#top{
margin: 100px;
}
input[type="checkbox"]:checked ~ img{
transform: translateX(500px);
}
#img{
transition: all 1s;
}
</style>
</head>
<body>
<div id="top">
<input type="checkbox" id="mycheck"/>
<label for="mycheck">噓噓噓噓噓</label>
<img src="2.jpg" id="img" alt="" />
</div>
</body>
</html>
px 應(yīng)該是固定大小啊
雙方括號(hào)代表這是JavaScript引擎內(nèi)部使用的屬性/方法,可以幫助debug(點(diǎn)一下[[FunctionLocation]]就能跳到定義,點(diǎn)一下[[Scopes]]就能查看閉包),但是正常JavaScript代碼是取不到這些屬性的。
引擎看心情決定要顯示哪些內(nèi)部屬性,顯示的格式也沒有規(guī)定,但在控制臺(tái)里大家一般都約定俗成用雙方括號(hào),保持和規(guī)范的格式一致。
ECMA 標(biāo)準(zhǔn): Object Internal Methods and Internal Slots
圖片不是同源的,需要加上useCORS: true,允許圖片跨域;http://html2canvas.hertzen.com/configuration
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>demo</title>
<style>
#main
{
width:220px;
height:300px;
border:1px solid black;
display:flex;
}
#main div
{
flex:1;
}
</style>
</head>
<body>
<div id="main">
<div style="background-color:coral;">紅色</div>
<div style="background-color:lightblue;">藍(lán)色</div>
<div style="background-color:lightgreen;">帶有更多內(nèi)容的綠色 div</div>
</div>
<p><b>注意:</b> Internet Explorer 9 及更早版本不支持 flex 屬性。</p>
<p><b>注意:</b> Internet Explorer 10 通過 -ms-flex 屬性來(lái)支持。 IE11 及更新版本完全支持 flex 屬性 (不需要 -ms- 前綴)。</p>
<p><b>注意:</b> Safari 6.1 (及更新瀏覽器) 通過 -webkit-flex 屬性支持。</p>
</body>
</html>北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國(guó)IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國(guó)家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國(guó)一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國(guó)成功上市,融資1
北大課工場(chǎng)是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國(guó)家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國(guó)制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級(jí)產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國(guó)職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫(kù),具有快速界面開發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁(yè)制作和網(wǎng)頁(yè)游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國(guó)Software AG 技術(shù)顧問,美國(guó)Dachieve 系統(tǒng)架構(gòu)師,美國(guó)AngelEngineers Inc. 系統(tǒng)架構(gòu)師。