Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[兼容性] 71. 出现重复文字的问题 #933

Open
qiilee opened this issue Jan 27, 2020 · 0 comments
Open

[兼容性] 71. 出现重复文字的问题 #933

qiilee opened this issue Jan 27, 2020 · 0 comments

Comments

@qiilee
Copy link
Member

qiilee commented Jan 27, 2020

问题说明:

    <div style="width:400px">
      <div style="float:left"></div>
      <!– _ –>
      <div style="float:right;width:400px">↓这就是多出来的那只猪</div>
    </div>

解决方法:
1、改变结构,不出现【一个容器包含2两个具有“float"样式的子容器】的结构。
2、减小第二个容器的宽度,使父容器宽度减去第二个容器宽度的值大于3
3、去掉所有的注释。
4、修正注释的写法。
5、在第二个容器后面加一个或者多个<divstyle="clear">来解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant