codeing or artist ?
记得大学第一节编程课,教授说,"如果一件事儿有对错,那么是科学。如果有美丑好坏,那么是艺术。" 一个能顺利运行还能让人阅读时体验思维美妙的代码,就是艺术和科学的结合。能运行的程序并不是好程序,能当作文章来读的才是。在我看来代码是一种特殊的文体,程序猿其实会写诗。
摘要: <div class="page-product-list"> <div class="thumbnail"> <div class="img"> <img src="https://aecpm.alicdn.com/simba/img/TB1XotJXQfb_uJkSnhJSuvdDVXa.jpg 阅读全文
posted @ 2020-10-14 10:38 codeing-or-artist-?? 阅读(505) 评论(0) 推荐(0) 编辑
摘要: <div class="page-video-list"> <div class="thumbnail"> <div class="img"> <img src="https://aecpm.alicdn.com/simba/img/TB1XotJXQfb_uJkSnhJSuvdDVXa.jpg"> 阅读全文
posted @ 2020-10-14 10:33 codeing-or-artist-?? 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: <div class="title"> <p>小妇人乔和劳里为什么不能在一起</p> </div> .title{padding:10px;} .title p{background-color:#d9edf7;border-radius:15px;line-height:20px;padding: 阅读全文
posted @ 2020-09-27 11:55 codeing-or-artist-?? 阅读(361) 评论(0) 推荐(0) 编辑
摘要: <p class="icon"><i class="fa fa-search"></p> .icon{font-size:16px;color:#000; -webkit-text-stroke:1px white; -moz-text-stroke:1px white; -o-text-strok 阅读全文
posted @ 2020-09-24 17:23 codeing-or-artist-?? 阅读(758) 评论(0) 推荐(0) 编辑
摘要: .div{ width:100%; height:0px; padding-bottom:100%; position:relative; } .div img{ width:100%; height:100%; position:absolute; left:0; top:0;} 阅读全文
posted @ 2019-09-23 18:14 codeing-or-artist-?? 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 使用绝对定位 对这三栏都实现绝对定位,其中中间绝对定位的位置是上下两栏的高度,内容超出则中间部分出现流动条; 代码实现: 使用flex布局 还可以使用flex布局实现这一布局,将flex-direction设置为column,定义排列方向为竖排,还需注意的是要定义页面的整体高度为100% 阅读全文
posted @ 2019-09-23 16:08 codeing-or-artist-?? 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 主要就是这句:disable when n.disabled 阅读全文
posted @ 2018-02-10 15:04 codeing-or-artist-?? 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 小问题 把: ng-repeat="item in items " 改成 : ng-repeat=“item in items track by $index” 阅读全文
posted @ 2018-01-22 14:47 codeing-or-artist-?? 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 针对独立 scope,可以通过在对象中声明如何从外部传入参数。有以下三种绑定策略: @ - 使用 DOM 属性值单项绑定到指令 scope 中。此时绑定的值总是一个字符串,因为 DOM 的属性值是一个字符串。 = - 在父 scope 和指令 scope 之间建立双向绑定。 & - 使用父 scop 阅读全文
posted @ 2017-12-23 10:37 codeing-or-artist-?? 阅读(163) 评论(0) 推荐(0) 编辑
摘要: app.directive('mansory',function(){ return { controller:function($scope){ this.changed = function(){ $scope.changed(); } }, link: f... 阅读全文
posted @ 2017-12-23 10:25 codeing-or-artist-?? 阅读(171) 评论(0) 推荐(0) 编辑