0

私はここで少し髪を引き裂いています.EdgeのAPIドキュメントは驚くべきものではありません..すべての順序は次のようになります。

var stage = sym.getComposition.getStage();
var children = stage.getChildSymbols();

for( var i = 0; i < children.length; ++i )
{
   alert( children[i].getSymbolElement().css( "z-index" ) );
}

しかし、すべての z-index が 0 になっているようで、すべてが描画される順序を調べる方法が他にありません。

4

4 に答える 4

0

アドビのスタッフからこの件について連絡があり、エディターに配置されている (動的に作成されていない) シンボルは、変更や読み取りが公開されていない内部インデックスを使用して並べ替えられているとのことでした。別の方法を見つける必要があります !

于 2013-04-30T20:47:01.190 に答える
0

Wild stab in the dark (I know nothing about Adobe Edge), but in CSS z-index is irrelevant to statically-positioned content, and effectively treated as 0. So if all of your elements are statically positioned, that would explain why they all say 0.

From the CSS 2.1 spec:

Within each stacking context, the following layers are painted in back-to-front order:
1. the background and borders of the element forming the stacking context.
2. the child stacking contexts with negative stack levels (most negative first).
3. the in-flow, non-inline-level, non-positioned descendants.
4. the non-positioned floats.
5. the in-flow, inline-level, non-positioned descendants, including inline tables and inline blocks.
6. the child stacking contexts with stack level 0 and the positioned descendants with stack level 0.
7. the child stacking contexts with positive stack levels (least positive first).

As you can see, #3 in the above (which occurs between elements with negative stacking values and positive ones, e.g., at 0) applies to elements with the default position, which is static. So in effect, z-index only applies to position: relative, position: absolute, etc. elements.

于 2013-04-30T17:12:49.970 に答える
0

Edge についてはよくわかりませんが、Flash では、z 値は空間内でどれくらい離れているか近いかを表します (と思います)。レイヤー内の順序と同じだとは思いません。おそらく、「順序」、「配置」、「レイヤー」など、配置順序に関係する変数を見つけてみてください。

おそらくこれが役に立ちます: bxslider の z-index 要素の順序

于 2013-04-30T17:14:47.560 に答える
0

このプログラムは、レイヤーの順序を管理するために z-index を使用していないことがわかりました。レイヤの順序は、おそらく js コードの動的作成中に作成されます - 注文フォームの下部。

z-index を使用する場合は、最初に div の z-index を手動で定義してから、それを変更して値を取得する必要があります。

Z インデックスを設定します。

div.css({"z-index":"123"});

Z インデックスを取得します。

div.css("z-index");
于 2013-06-13T17:01:27.227 に答える