我正在使用 float 和 clear 做一些事情。我发现使用 float: none;
或 clear: none;
没有区别谁能举例说明区别
最佳答案
Float:none;
告诉元素您不希望它 float 。
Clear
告诉其他元素是否应该允许它们 float ,如果没有,则允许在两侧 float 。这就是为什么当您使用 clear:both;
时 float 会停止。
关于css - float : none and clear: none之间有什么区别吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18153129/