返回介绍

8.5.3 安装插件 3

发布于 2025-02-26 23:07:12 字数 1826 浏览 0 评论 0 收藏 0

设置 SCSS

为完善此应用,还需要对

scss/ionic.app.scss 做如下变更。首先,重写 4 个 Ionic SCSS 变量,然后包含 Ionic SCSS 框架:

$positive: #1976D2 !default; $font-family-base: 'Lato', sans-serif !default; $tabs-striped-off-opacity: 1 !default; // The path for our ionicons font files, relative to the built CSS in www/css $ionicons-font-path: "../lib/ionic/fonts" !default; // Include all of Ionic @import "www/lib/ionic/scss/ionic";

接下来,覆盖标题栏和华东框的样式:

.bar .title { font-size: 21px; } .slider { background-color: #eee; min-height: 200px; max-height: 400px; } ion-slide img { width: 100%; height: 50%; margin: 0 auto; display: block; max-height: 350px; max-width: 500px; } .t-r { position: absolute; top: 5px; right: 0; margin: 20px; margin-right: 5px; margin-left: 25px; text-align: center; width: 84%; } .b-r { position: absolute; bottom: 5px; margin: 20px; right: 0px; margin-right: 5px; margin-left: 25px; text-align: center; width: 84%; } .c-c { position: absolute; top: 25%; margin: 20px; left: 0px; margin-right: 5px; margin-left: 25px; text-align: center; width: 84%; } ion-slide label { font-size: 21px; color: #333; padding: 5px; border-radius: 5px; background: linear-gradient(to right, #e2e2e2 0%, #dbdbdb 50%,#d1d1d1 51%, #fefefe 100%); opacity: 0.8; }

为聊天界面添加以下样式:

.footerInput { width: 77%; } .chat-img { width: 50%; } .left, .right { width: 75%; clear: both; margin: 5px; } .left { float: left; text-align: left; } .right { float: right; text-align: right; } .usr-img { width: 48px; } map { display: block; width: 100%; height: 100%; } .inline-map { height: 200px; border: 1px solid #787878; } .scroll { height: 100%; }

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文