JQuery For Setting A Dynamic max-width
问题 I'm not particularly good with jQuery, so a complete code solution would be ideal. The function will: Get the 70% width of the browser's screen. Convert that width into its corresponding px value Set the max width of the #mainContainer using the value got from the conversion/calculation. Here is the CSS style for the container I want to set max-width with: #mainContainer { background-image: url(bg3.jpg); background-repeat: repeat; background-color: #999; width: 70%; padding: 0; min-width: