The code is as follows:
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style>#lside{ width:20px; height:100px; background:green; float:left;}#rside{ width:20px; height:100px; background:red;}</style></head><body><div id="lside">我是左</div><div id="rside">我是右</div></body>
Just display it normally on the browser
Compatibility, please pay attention! ! !
Do not rely on the effect previewed on VS or DM, but on the effect seen on the browser.
#rside
{
width:20px;
height:100px;
background:red;
float:left;
}
Just add it Correct
This is caused by the difference in the interpretation of floating between IE series and non-IE series
Points will be awarded for posting. Thanks for the help.