jQuery を使用して div の幅を変更する必要があります。
以下を使用すると、機能します。
$('#footer').css('width', '100%');
$('#footer').css('width', '-=239');
これを使用すると、動作します:
$('#footer').css('width', '100%');
$('#footer').css('width', '-=239px');
しかし、これを使用しても何もしません:
$('#footer').css('width', '100%');
$('#footer').css('width', '-=21em');
jQuery を で動作させる方法はありemますか? または、たとえば変数を計算emして設定し、その値を減算しますか?px
編集:スペルとコードを修正してくれてありがとう!