上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 1. 强制不换行 div{ white-space:nowrap; } 2. 自动换行 div{ word-wrap: break-word; word-break: normal; } 3. 强制英文单词断行 div{ word-break:break-all; } 阅读全文
posted @ 2020-06-10 10:33 webxy 阅读(4413) 评论(0) 推荐(0) 编辑
摘要: <div v-for="item in items" :key="item.id" :value='item.value' :label="item.label"> <div>{{item.name}}</div> </div> <script> items:[ {id:1,name:"可乐"}, 阅读全文
posted @ 2020-04-12 00:45 webxy 阅读(6891) 评论(0) 推荐(0) 编辑
摘要: 一:display:flex 布局 display:flex 是一种布局方式。它即可以应用于容器中,也可以应用于行内元素。是W3C提出的一种新的方案,可以简便、完整、响应式地实现各种页面布局。目前,它已经得到了所有浏览器的支持。 Flex是Flexible Box的缩写,意为"弹性布局",用来为盒状 阅读全文
posted @ 2020-02-08 19:47 webxy 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 以750*1334为例 统一字体:苹方 一、文本 1.主题类: 展示标题:小字号 36 加粗 行距50 大字号 40 加粗行距58 主标题:大字号 32 加粗 小字号28 中等 副标题:大字号30 加粗 小字号 24 中等 2.文本类: 主文本:字号36 中等 行距58 辅文本:字号60 行距48 阅读全文
posted @ 2019-12-16 10:54 webxy 阅读(8407) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> body{ background: #000; overflow: hidden; } .sun{ width: 100px; height: 1 阅读全文
posted @ 2019-11-25 16:16 webxy 阅读(250) 评论(0) 推荐(0) 编辑
摘要: /*公共样式*/ /*css初始化*/ html,body,ul,li,ol,ul,dl,dd,dt,p,h1,h2,h3,h4,h5,h6,form,fieldset{ margin: 0; padding: 0; } /*fieldset组合表单中的相关元素*/ fieldset,img,inp 阅读全文
posted @ 2019-11-22 10:12 webxy 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 单选框 radio 1.获取值 $("input[name='killOrder']:checked").val(); $('input:radio:checked').val(); $("input[type='radio']:checked").val(); $(":radio[checked] 阅读全文
posted @ 2019-11-04 10:49 webxy 阅读(23990) 评论(0) 推荐(2) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> 自定义滚动条</title> <style> #div1 input{ background: #fff; } #div1 input.active{ background: yellow; } #div1 div{ width: 200px; height: 200px; b 阅读全文
posted @ 2019-09-03 13:46 webxy 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1xx (临时响应)表示临时响应并需要请求者继续执行操作的状态代码。 100 (继续) 请求者应当继续提出请求。 服务器返回此代码表示已收到请求的第一部分,正在等待其余部分。 101 (切换协议) 请求者已要求服务器切换协议,服务器已确认并准备切换。 102 由WebDAV(RFC 2518)扩展的 阅读全文
posted @ 2019-08-30 13:57 webxy 阅读(8252) 评论(0) 推荐(0) 编辑
摘要: 事件类别: tap:点击事件; longtap:长按事件; touchstart:触摸开始; touchend:触摸结束; touchcansce:取消触摸; 事件绑定: bind绑定; catch绑定;(能阻止事件冒泡) 例如:绑定点击事件 bindtap page.wxml 文件 page.js 阅读全文
posted @ 2019-07-27 11:49 webxy 阅读(55163) 评论(0) 推荐(5) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页