从右向左布局(RTL Layout)


Framework7 完全支持从右向左的语言。你只需要增加一个额外的CSS文件即可:

<!DOCTYPE html>
<html>
  <head>
    ...
    <title>My App</title>
    <!-- Path to Framework7 Library CSS-->
    <link rel="stylesheet" href="path/to/framework7.[theme].min.css">
    
    <!-- Enable RTL by including additional RTL styles: -->
    <link rel="stylesheet" href="path/to/framework7.[theme].rtl.min.css">
    
    <!-- Path to your custom app styles-->
    <link rel="stylesheet" href="path/to/my-app.css">
    ...

Where [theme] is the theme you use: ios or material

注意,从右向左布局全部通过CSS来实现,你不需要修改HTML结构。