使用如下示例代码可以对不同设备进行样式指定.
1 | <style lang="scss"> |
See the Pen bpui-style-device by brainpoint (@brainpoint) on CodePen.
当设备是手机时生效.
1 | @include bp-isPhone { |
当设置是桌面或平板时生效.
1 | @include bp-isTablet { |
当设备横屏时生效.
1 | @include bp-isLandscape { |
当设备竖屏时生效.
1 | @include bp-isPortrait { |