想要vs2017 home c#webbrowser支持div浮动flow,但在没有。如果在浏览器中,是可以的
<style type = "text/css" >
.div1{ width: 200px; height: 100px; background: red; float: left; }
.div2{ width: 300px; height: 350px; background: yellow; }
</style >
<div class = "div1" ></div >
<div class = "div2" ></div >
webbrowser用的ie7核心,有兼容性问题。
<!doctype html>
<style type="text/css">
.div1 {
width: 200px;
height: 100px;
background: red;
position:absolute
}
.div2 {
width: 300px;
height: 350px;
background: yellow;
}
</style>
<div class="div1"></div>
<div class="div2"></div>
有帮助麻烦点下【采纳该答案】