随笔分类 - html
摘要:1.contain 宽高自适应 2.cover 宽度自适应,高度裁剪 3.具体值(例如100%,100%等) 拉伸,会失真
阅读全文
摘要:1.svg,canvas 2.border-radius+三角形实现方式 3.两个半圆,旋转其中一个半圆 4.clip(考虑兼容性) 其中,第3种方式可以绘制不同角度的扇形
阅读全文
摘要:在控制台输入document.body.contentEditable="true"或者document.designMode = 'on'就可以实现对网页的编辑了。
阅读全文
摘要:规范里说: Authors specify the style and location of generated content with the :before and :after pseudo-elements. As their names indicate, the :before an
阅读全文