上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页
摘要: 二 常见的父项属性 设置主轴的方向 flex-direction: row;row //1 从左到右 [ 默认值 ] row-reverse //2 从右到左 column //3 从上到下 column-reverse //4 从下到上 reverse 单词: 颠倒 相反的意思 要点 给父盒子添加 阅读全文
posted @ 2021-02-04 10:57 棉花糖88 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 这个比较重要 京东的图片格式是 .dpg后缀的 是京东自己出的一种有损压缩技术 体积减少50% 并且支持各种浏览器 加了固定定位的盒子 一定要给高度 图片设置为100%宽度 盒子有多宽 图片就多宽 ctrl + g 快速跳转行号 编辑器快捷键 去除图片底部的空白缝隙 img { vertical-a 阅读全文
posted @ 2021-02-04 09:07 棉花糖88 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 移动端的特殊样式 /*去除a连接点击时 后侧的高亮背景*/ a { -webkit-tap-highlight-color: transparent; } /*添加这个属性 iOS上 输入框和按钮才可以书写自定义样式*/ input { -webkit-appearance: none; } /*禁 阅读全文
posted @ 2021-02-03 14:36 棉花糖88 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 视口标签 <meta name="viewport"//视口 content=" width=device-width,//设备宽度 user-scalable=no, //是够可以缩放 0或1 yes或no initial-scale=1.0,//初始缩放比 maximum-scale=1.0,/ 阅读全文
posted @ 2021-02-03 11:20 棉花糖88 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 一 移动端基础 二 视口 阅读全文
posted @ 2021-02-03 09:38 棉花糖88 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 先写私有前缀 再写通用写法 阅读全文
posted @ 2021-02-03 08:58 棉花糖88 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 小demo 旋转木马 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>翻转导航</title> <style> body { /*添加透视*/ perspective: 1000px; } /*最外面的盒子* 阅读全文
posted @ 2021-02-03 08:45 棉花糖88 阅读(84) 评论(0) 推荐(0) 编辑
摘要: demo1 两面翻转的盒子 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>rotate</title> <style> body { perspective: 500px; } .box { positio 阅读全文
posted @ 2021-02-02 21:30 棉花糖88 阅读(55) 评论(0) 推荐(0) 编辑
摘要: z轴单位一般不用 百分比 直接用精确的单位 一 透视 per spect ive perspective: 500px; [值是 视距 就是上图中的 d距离 ] body { perspective: 500px;//透视的值是: 视距px } div { width: 200px; height: 阅读全文
posted @ 2021-02-02 20:40 棉花糖88 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 基础语法 <style> /*第一步:定义动画*/ @keyframes move { //开始状态 0% { transform: translateX(0px); } //结束状态 100% { transform: translateX(500px); } } div { width: 300 阅读全文
posted @ 2021-02-01 21:02 棉花糖88 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页