Layout CSS HTML
I am not very talented and don’t know much about html and css. Now I am encountering the following problems when making a page. I hope experts can help me solve it!Why is no one replying? ?
Add the following css to layers 2 and 3: {padding-bottom:10000px;margin-bottom:-10000px;}
Thank you upstairs, but I think this still needs to be done according to the The size of the adjustment layer for different article lengths cannot be automatically aligned! Thank you anyway!
Use js and place it at the end of the page,
function fitHeight(){
div2.style.height=div3.style.height;
}
fitHeight();
In this way, the two divs will be realigned every time the page is loaded
Thank you upstairs, but I think this still requires adjusting the size of the layer according to different article lengths, and it cannot be automatically aligned! Thank you anyway! The article isn't that high, right? ? If you think 10000px is not enough, you can always write 10Wpx. The article shouldn't be that high. If this doesn't work, then you can only use JS. Compare the heights of the two layers and assign the larger height to the smaller div
Oh, thank you. I have to use JS! Ask for the code! Don’t know much about this!