2017-08-23 43 views
0

我想結合以下兩個emmet片段,它們都是分開工作的,但我想合併它們。第一個是這樣的:emmet組合元素問題

header>nav>ul>li{menu$}*4^^^section>(article*2>header>h3{Blog by}^div>p>lorem^footer>p{date:}) 

,第二個看起來像這樣:

div>p>a{Next article}^footer>span{Tel:09834234 |}+span{ email:[email protected]} 

我想將它們合併爲其中第一批節標籤後的第二個腳本遵循一個腳本。

謝謝

回答

1

我想你想組兩個?

(header>nav>ul>li{menu$}*4^^^section>(article*2>header>h3{Blog by}^div>p>lorem^footer>p{date:}))+(div>p>a{Next article}^footer>span{Tel:09834234 |}+span{ email:[email protected]}) 

所以第2組爲1組

(expr1)+(expr2) 
+0

兄弟其實,我想表達式2到外面表達式1,所以在表達式2有什麼要來段expr1中結束標記之後。 我試圖在節標籤外使用^步驟。 – user2371684

+0

也許你可以發佈你的預期結果,因爲對我來說,分組似乎是一個完美的答案。這裏expr1被擴展,就是最後一個標籤。然後expr2被直接擴展? – strippenzieher

+0

謝謝,我把我的括號放在錯誤的地方:) – user2371684