Some friends left a message saying that they need a js code to implement partial screen adaptation. I have briefly compiled it here and released it for everyone.
Untitled Document
<script><br>
var winWidth;<br>
window.onload=function(){<br>
if (window.innerWidth)<br>
winWidth = window.innerWidth;<br>
else if ((document.body) && (document.body.clientWidth))<br>
winWidth = document.body.clientWidth;<br>
if(winWidth<=1100)<br />
document.getElementById("main").style.width="880px";<br />
else if(winWidth>=1100)<br>
document.getElementById("main").style.width="1100px";<br>
}<br>
window.onresize=function(){<br>
if (window.innerWidth)<br>
winWidth = window.innerWidth;<br>
else if ((document.body) && (document.body.clientWidth))<br>
winWidth = document.body.clientWidth;<br>
if(winWidth<=1100)<br />
document.getElementById("main").style.width="880px";<br />
else if(winWidth>=1100)<br>
document.getElementById("main").style.width="1100px";<br>
}<br>
</script>
Try it and see if it works very well. I hope you all like it.