老师视频里的demo,不是习题!!不是习题!!!
把玩就好,把玩就好……
<!doctype html> <html> <head> <meta charset="utf-8"> <title>浮动元素倒数2个浮动最后一个字符重复bug</title> <style type="text/css"> html, body { background: #fff; color: #333; } div { width: 100px; } p { margin-right: 1px; } span { float: left; width: 120px; } </style> </head> <body> <div> <p> <span>A</span> <span>B</span> <span>C</span> </p> </div> </body> </html>