2、利用 Sass 实现响应式网页设计

利用 Sass 实现响应式网页设计

在掌握使用 HTML5 和 CSS3 进行响应式网页设计之前,我们需要了解 CSS 预处理器,特别是 Sass。在本文中,所有 CSS 都将以 SCSS 格式的 Sass 编写,这种编写方式极大地改进了传统的 CSS 编写。

1. Sass 简介

CSS 预处理器如 Sass、LESS 和 Stylus 为网页和移动应用设计师与开发者带来了新的强大功能。例如下面的代码展示了 Sass 的嵌套特性:

.navigation-bar {
    display: flex;
    li {
        padding: 5px 10px;
    }
}

编译后的 CSS 代码如下:

.navigation-bar {
    display: flex; 
}
.navigation-bar li {
    padding: 5px 10px;
}
2. 下载示例代码

可以从 http://www.packtpub.com 账户下载示例代码文件。若在其他地方购买,可访问 http://www.packtpub.com/support 注册获取文件。

3.
The TPS54331 is a 28-V, 3-A non-synchronous buck Integrated 80 mΩ High Side MOSFET Supports up to 3A Continuous Output Current converter that integrates a low Rds(on) high side MOSFET. To increase efficiency at light loads, a pulse skipping Eco-mode™ feature is automatically High Efficiency at Light Loads with a Pulse activated. Furthermore, the 1 A shutdown supply Skipping Eco-mode™ current allows the device to be used in battery Fixed 570kHz Switching Frequency Typical 1A Shutdown Quiescent Current powered applications. Current mode control with internal slope compensation simplifies the external compensation calculations and reduces component Adjustable Slow Start Limits Inrush Currents count while allowing the use of ceramic output Programmable UVLO Threshold Overvoltage Transient Protection capacitors. A resistor divider programs the hysterisis of the input under-voltage lockout. An overvoltage transient protection circuit limits voltage overshoots Cycle by Cycle Current Limit, Frequency Fold during startup and transient conditions. A cycle by Back and Thermal Shutdown Protection cycle current limit scheme, frequency fold back and Available in Easy-to-Use SOIC8 Package Supported by SwitcherPro™ Software Tool (http://focus.ti.com/docs/toolsw/folders/print/s witcherpro.html) For SWIFT™ Documentation, See the TI Website at www.ti.com/swift thermal shutdown protect the device and the load in the event of an overload condition. The TPS54331 is available in an 8-pin SOIC package that has been internally optimized to improve thermal performance.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值