摘要: {{插值表达式}} 1.这种{{}}语法就是插值表达式,可以写任何合法的表达式. 2.v-text属性语法叫做指令,可以绑定属性值 3.在vue中所有的指令,都是属性,Vue的指令,都是以v-开头 const vm = new Vue({ el: '#app', //指定当前要创建的这个VM实例,要 阅读全文
posted @ 2020-04-29 15:31 卡卡C哦 阅读(112) 评论(0) 推荐(0)
摘要: jQuery获取元素 $('div'); jQuery点击事件 $('div).onclick=function(){ alert('点击了'); } dom点击事件 var p = document.getElementsByClassName('a')[0]; //必须带索引号 p.onclic 阅读全文
posted @ 2020-04-29 15:19 卡卡C哦 阅读(100) 评论(0) 推荐(0)
摘要: <!-- 自适应必须先加这一行 --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> div { width: 200px; height: 200px; background-color: red; } 阅读全文
posted @ 2020-04-22 16:23 卡卡C哦 阅读(87) 评论(0) 推荐(0)
摘要: box-shadow 阴影效果 X轴距离 Y轴距离 模糊距离 还可以设置颜色 box-sizing: border-box; 盒子不用再去除边框边距的距离了 始终保持原来大小 text-shadow 文字阴影 属性等同盒子阴影 word-wrap:break-word 自动换行 //规定列数 col 阅读全文
posted @ 2020-04-21 15:47 卡卡C哦 阅读(155) 评论(0) 推荐(0)
摘要: 1.字体 body { /*字体*/ font-family: "Microsoft Yahei"; /*字体大小*/ font-size: 20px; /*字体粗细 bold加粗 bolder更粗 lighter更细 400是默认 700等于加粗*/ font-weight: 400; /*字体样 阅读全文
posted @ 2020-04-17 20:59 卡卡C哦 阅读(135) 评论(0) 推荐(0)
摘要: <!--正常情况下 <bady margin=0 auto 不管怎样都居中--> <!--高级选择器--> <!--通配符选择器 *{xx#}级别最低,margin=0,padding=0)--> <!--分组选择器 div,p{...}--> <!--后代选择器 div下的只要有a标签就受影响 d 阅读全文
posted @ 2020-04-17 20:57 卡卡C哦 阅读(83) 评论(0) 推荐(0)
摘要: 表单标签 <form action="" method="POST"> <input type="button" value="123"> 按钮 <input type="text" name="" id="" value="" ><br> 文本框 跟name值一起提交  阅读全文
posted @ 2020-04-14 15:52 卡卡C哦 阅读(73) 评论(0) 推荐(0)