ウィンドウの幅をナビゲーションの幅で差し引いて、要素 (#content) の幅を計算したいと思います。実際、私は自分のコードの失敗を知りません。誰かが私を助けることができれば素晴らしいでしょう!
$(function () {
$(window).resize(function () {
var widthWindow = $(window).width();
var widthNav = $("nav").width();
$("#content").css({ "width": widthWindow - widthNav });
// Put the console log here
console.log(widthWindow, widthNav);
}).resize();
});