移动端1px边框的scss mixins 的解决方案,支持颜色配置,圆角设置
'%3e%3cpath%20d='M624.68,512.43a16,16,0,0,1,0,22.63l-45.25,45.25a16,16,0,0,1-22.63-22.63l45.26-45.25a16,16,0,0,0,.19-22.43Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M602.25,490l-34.13-34.13h0L556.8,444.55a16,16,0,0,0-22.63,0l22.63-22.63a16,16,0,0,1,22.63,0l67.88,67.88a16,16,0,0,1,0,22.63l-22.63,22.63a16,16,0,0,0,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpolygon%20points='219.66%2038.63%20219.66%2038.64%20208.34%2027.32%20219.66%2038.63'%20fill='%23fff'%20/%3e%3cpath%20d='M534.17,444.55a16,16,0,0,1,22.63,0l11.32,11.32-45.26,45.25L511.55,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M466.29,557.68a16,16,0,0,1-22.62,0l-11.32-11.31,45.26-45.25,11.31,11.31a16,16,0,0,1,0,22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M443.67,557.68a16,16,0,0,0,22.62,0l-22.62,22.63a16,16,0,0,1-22.63,0l-67.88-67.88a16,16,0,0,1,0-22.63l22.62-22.63a16,16,0,0,0,0,22.63l22.63,22.63,33.94,33.94Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M421,421.92a16,16,0,0,1,22.63,22.63L398.41,489.8a16,16,0,0,0-.06,22.56L375.78,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M398.35,512.36l.06.07L375.78,489.8Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3c/g%3e%3c/svg%3e)
CSS3 是层叠样式表(Cascading Style Sheets)语言的最新版本,旨在扩展CSS2.1。
'%3e%3cpath%20d='M624.68,512.43a16,16,0,0,1,0,22.63l-45.25,45.25a16,16,0,0,1-22.63-22.63l45.26-45.25a16,16,0,0,0,.19-22.43Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M602.25,490l-34.13-34.13h0L556.8,444.55a16,16,0,0,0-22.63,0l22.63-22.63a16,16,0,0,1,22.63,0l67.88,67.88a16,16,0,0,1,0,22.63l-22.63,22.63a16,16,0,0,0,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpolygon%20points='219.66%2038.63%20219.66%2038.64%20208.34%2027.32%20219.66%2038.63'%20fill='%23fff'%20/%3e%3cpath%20d='M534.17,444.55a16,16,0,0,1,22.63,0l11.32,11.32-45.26,45.25L511.55,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M466.29,557.68a16,16,0,0,1-22.62,0l-11.32-11.31,45.26-45.25,11.31,11.31a16,16,0,0,1,0,22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M443.67,557.68a16,16,0,0,0,22.62,0l-22.62,22.63a16,16,0,0,1-22.63,0l-67.88-67.88a16,16,0,0,1,0-22.63l22.62-22.63a16,16,0,0,0,0,22.63l22.63,22.63,33.94,33.94Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M421,421.92a16,16,0,0,1,22.63,22.63L398.41,489.8a16,16,0,0,0-.06,22.56L375.78,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M398.35,512.36l.06.07L375.78,489.8Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3c/g%3e%3c/svg%3e)
网格布局是一种二维的布局模式。可用于页面主要的区域布局或小型组件。
'%3e%3cpath%20d='M624.68,512.43a16,16,0,0,1,0,22.63l-45.25,45.25a16,16,0,0,1-22.63-22.63l45.26-45.25a16,16,0,0,0,.19-22.43Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M602.25,490l-34.13-34.13h0L556.8,444.55a16,16,0,0,0-22.63,0l22.63-22.63a16,16,0,0,1,22.63,0l67.88,67.88a16,16,0,0,1,0,22.63l-22.63,22.63a16,16,0,0,0,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpolygon%20points='219.66%2038.63%20219.66%2038.64%20208.34%2027.32%20219.66%2038.63'%20fill='%23fff'%20/%3e%3cpath%20d='M534.17,444.55a16,16,0,0,1,22.63,0l11.32,11.32-45.26,45.25L511.55,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M466.29,557.68a16,16,0,0,1-22.62,0l-11.32-11.31,45.26-45.25,11.31,11.31a16,16,0,0,1,0,22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M443.67,557.68a16,16,0,0,0,22.62,0l-22.62,22.63a16,16,0,0,1-22.63,0l-67.88-67.88a16,16,0,0,1,0-22.63l22.62-22.63a16,16,0,0,0,0,22.63l22.63,22.63,33.94,33.94Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M421,421.92a16,16,0,0,1,22.63,22.63L398.41,489.8a16,16,0,0,0-.06,22.56L375.78,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M398.35,512.36l.06.07L375.78,489.8Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3c/g%3e%3c/svg%3e)
弹性盒子布局(Flexbox)是一种一维的布局模型,一次只能处理一个维度的布局,一行或一列。
'%3e%3cpath%20d='M624.68,512.43a16,16,0,0,1,0,22.63l-45.25,45.25a16,16,0,0,1-22.63-22.63l45.26-45.25a16,16,0,0,0,.19-22.43Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M602.25,490l-34.13-34.13h0L556.8,444.55a16,16,0,0,0-22.63,0l22.63-22.63a16,16,0,0,1,22.63,0l67.88,67.88a16,16,0,0,1,0,22.63l-22.63,22.63a16,16,0,0,0,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpolygon%20points='219.66%2038.63%20219.66%2038.64%20208.34%2027.32%20219.66%2038.63'%20fill='%23fff'%20/%3e%3cpath%20d='M534.17,444.55a16,16,0,0,1,22.63,0l11.32,11.32-45.26,45.25L511.55,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M466.29,557.68a16,16,0,0,1-22.62,0l-11.32-11.31,45.26-45.25,11.31,11.31a16,16,0,0,1,0,22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M443.67,557.68a16,16,0,0,0,22.62,0l-22.62,22.63a16,16,0,0,1-22.63,0l-67.88-67.88a16,16,0,0,1,0-22.63l22.62-22.63a16,16,0,0,0,0,22.63l22.63,22.63,33.94,33.94Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M421,421.92a16,16,0,0,1,22.63,22.63L398.41,489.8a16,16,0,0,0-.06,22.56L375.78,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M398.35,512.36l.06.07L375.78,489.8Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3c/g%3e%3c/svg%3e)
现在html5移动端非常的火,很多小伙伴想学习又不知道从哪开始学起,今天就分享一下前html5该如何入门。
'%3e%3cpath%20d='M624.68,512.43a16,16,0,0,1,0,22.63l-45.25,45.25a16,16,0,0,1-22.63-22.63l45.26-45.25a16,16,0,0,0,.19-22.43Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M602.25,490l-34.13-34.13h0L556.8,444.55a16,16,0,0,0-22.63,0l22.63-22.63a16,16,0,0,1,22.63,0l67.88,67.88a16,16,0,0,1,0,22.63l-22.63,22.63a16,16,0,0,0,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpolygon%20points='219.66%2038.63%20219.66%2038.64%20208.34%2027.32%20219.66%2038.63'%20fill='%23fff'%20/%3e%3cpath%20d='M534.17,444.55a16,16,0,0,1,22.63,0l11.32,11.32-45.26,45.25L511.55,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M466.29,557.68a16,16,0,0,1-22.62,0l-11.32-11.31,45.26-45.25,11.31,11.31a16,16,0,0,1,0,22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M443.67,557.68a16,16,0,0,0,22.62,0l-22.62,22.63a16,16,0,0,1-22.63,0l-67.88-67.88a16,16,0,0,1,0-22.63l22.62-22.63a16,16,0,0,0,0,22.63l22.63,22.63,33.94,33.94Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M421,421.92a16,16,0,0,1,22.63,22.63L398.41,489.8a16,16,0,0,0-.06,22.56L375.78,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M398.35,512.36l.06.07L375.78,489.8Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3c/g%3e%3c/svg%3e)
所谓RGBA,即是在RGB的基础上,加上了Alpha通道,也就是可以控制透明度的通道,其值介于0~1之间.
'%3e%3cpath%20d='M624.68,512.43a16,16,0,0,1,0,22.63l-45.25,45.25a16,16,0,0,1-22.63-22.63l45.26-45.25a16,16,0,0,0,.19-22.43Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M602.25,490l-34.13-34.13h0L556.8,444.55a16,16,0,0,0-22.63,0l22.63-22.63a16,16,0,0,1,22.63,0l67.88,67.88a16,16,0,0,1,0,22.63l-22.63,22.63a16,16,0,0,0,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpolygon%20points='219.66%2038.63%20219.66%2038.64%20208.34%2027.32%20219.66%2038.63'%20fill='%23fff'%20/%3e%3cpath%20d='M534.17,444.55a16,16,0,0,1,22.63,0l11.32,11.32-45.26,45.25L511.55,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M466.29,557.68a16,16,0,0,1-22.62,0l-11.32-11.31,45.26-45.25,11.31,11.31a16,16,0,0,1,0,22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M443.67,557.68a16,16,0,0,0,22.62,0l-22.62,22.63a16,16,0,0,1-22.63,0l-67.88-67.88a16,16,0,0,1,0-22.63l22.62-22.63a16,16,0,0,0,0,22.63l22.63,22.63,33.94,33.94Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M421,421.92a16,16,0,0,1,22.63,22.63L398.41,489.8a16,16,0,0,0-.06,22.56L375.78,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M398.35,512.36l.06.07L375.78,489.8Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3c/g%3e%3c/svg%3e)
web开发中常用的CSS样式初始化 reset.css
'%3e%3cpath%20d='M624.68,512.43a16,16,0,0,1,0,22.63l-45.25,45.25a16,16,0,0,1-22.63-22.63l45.26-45.25a16,16,0,0,0,.19-22.43Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M602.25,490l-34.13-34.13h0L556.8,444.55a16,16,0,0,0-22.63,0l22.63-22.63a16,16,0,0,1,22.63,0l67.88,67.88a16,16,0,0,1,0,22.63l-22.63,22.63a16,16,0,0,0,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpolygon%20points='219.66%2038.63%20219.66%2038.64%20208.34%2027.32%20219.66%2038.63'%20fill='%23fff'%20/%3e%3cpath%20d='M534.17,444.55a16,16,0,0,1,22.63,0l11.32,11.32-45.26,45.25L511.55,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M466.29,557.68a16,16,0,0,1-22.62,0l-11.32-11.31,45.26-45.25,11.31,11.31a16,16,0,0,1,0,22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M443.67,557.68a16,16,0,0,0,22.62,0l-22.62,22.63a16,16,0,0,1-22.63,0l-67.88-67.88a16,16,0,0,1,0-22.63l22.62-22.63a16,16,0,0,0,0,22.63l22.63,22.63,33.94,33.94Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M421,421.92a16,16,0,0,1,22.63,22.63L398.41,489.8a16,16,0,0,0-.06,22.56L375.78,489.8a16,16,0,0,1,0-22.63Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3cpath%20d='M398.35,512.36l.06.07L375.78,489.8Z'%20transform='translate(-348.47%20-417.23)'%20fill='%23fff'%20/%3e%3c/g%3e%3c/svg%3e)