#dock > li ul
{
position: absolute;
bottom: 0px;
left: -180px;
z-index: 1;
width: 180px;
display: none;
background-color: #F1F1F1;
border: solid 1px #969696;
padding: 0px;
margin: 0px;
list-style: none;
}
これは私の css クラスで、jquery を使用して動的に右マージンを適用したいと考えています。どんな考えでも大歓迎です。私はこれを試しました:
$('#dock').children('li').children('ul').css({ 'margin-right': rmargin });
しかし、それは機能していないようです。