HTML
CSS
JavaScript
Vue
React
Python
PHP
Java
.Net
Java9手册
PHP手册
CSS3手册
jQuery手册
源代码
在线运行
<!DOCTYPE html> <html> <head> <title>Bootstrap 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css"> <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script> <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>图片对齐方式</h2> <p>使用 .float-right 类来设置图片右对齐,使用 .float-left 类设置图片左对齐:</p> <img src="https://static.cainiaoplay.com/images/mix/paris.jpg" class="float-left"> <img src="https://static.cainiaoplay.com/images/mix/cinqueterre.jpg" class="float-right"> </div> </body> </html>
动行结果