摘要: 1. 文字阴影 text-shadow 使用: text-shadow: 水平方向偏移量 垂直方向偏移量 模糊程度 颜色; #box { text-shadow: 10px 10px 3px deeppink; // 1个阴影 } 多个阴影 加一个逗号 写第二个阴影的样式 #box { text-s 阅读全文
posted @ 2018-11-09 16:49 耶梦加德 阅读(278) 评论(0) 推荐(0) 编辑
摘要: #box{ width: 200px; height: 200px; background-color: pink; } 标准盒子模型 box-sizing: content-box; padding 是向外扩的 border 也是向外扩的 怪异盒子模型 box-sizing: border-box 阅读全文
posted @ 2018-11-09 16:12 耶梦加德 阅读(687) 评论(0) 推荐(0) 编辑
摘要: (面试题) 怎么样通过 CSS 画一个三角形: 1. 元素的 width 和 height 设置为 0 2. 边框 足够大 3. 需要的三角形的部分, border-top-color 设置为 有色 4. 不需要的部分 border-right-color,border-bottom-color,b 阅读全文
posted @ 2018-11-09 11:57 耶梦加德 阅读(760) 评论(0) 推荐(0) 编辑