iphone development

  • 怎么判断iphone上有没有安装某一app呢?比如,如果安装了就跳转到那个app,如果没有安装,就跳转到web.
    bundle ID:
    Every iOS app requires an "App ID" to work. This is a string that is set up during development, usually in the form of com.your-company.app-name
    . Please note that "App ID" and "Bundle ID" is generally used interchangeably.
display: 块级元素和inline元素

http://learnlayout.com/display.html
display is CSS's most important property for controlling layout. Every element has a default display value depending on what type of element it is. The default for most elements is usually block or inline. A block element is often called a block-level element. An inline element is always just called an inline element.

div is the standard block-level element. A block-level element starts on a new line and stretches out to the left and right as far as it can.
span is the standard inline element. An inline element can wrap some text inside a paragraph without disrupting the flow of that paragraph.

The a element is the most common inline element, since you use them for links.

none
二 重叠样式需要主要CSS样式解释

1、z-index 重叠顺序属性
2、position:relativeposition:absolute设置对象属性为可定位(可重叠)
3、left right top bottom绝对定位具体位置设置

三 一个div在另一个div的底部
<div id="div1" style="border:1px solid red; width:500px; position:relative; height:500px;">
1111111
    <div id="div2" style="border:1px solid green; width:300px; height:200px; position:absolute; bottom:0px;">2222222222
    </div>
</div>

父元素position不能是static(默认值)
子元素potiosn需要是absolute
如何让父层DIV的滤镜效果不影响到子层DIV,就是说避免父层透明度的继承问题
  1. 在IE9和大多数浏览器,使用rgba就能避免父级影响后代的不透明度问题:
background: rgba(0,0,0,0.8);//前面3个0为红绿蓝颜色值,最后一个为不透明度
  1. 在父级中添加2个DIV,第一个设置opacity不透明度,第二个定位到第一个上面。因为2个DIV是同级,所以避免了opacity的影响。
四 两个class共用css:
.class1, .class2{
color: white;
}
五 margin
margin:10px 5px 15px 20px;
上外边距是 10px
右外边距是 5px
下外边距是 15px
左外边距是 20px

  • span float:right 不work:

要先变成块display:block;定义宽高
然后再右对齐文本

  • Radio

Screen Shot 2016-11-22 at 1.28.57 PM.png

Personally, I'd use jQuery. Add an onclick to each "radio" (div with a class radio) to run a function which removes the "selected" class from all the divs and adds it to the one clicked.
Example at: http://jsfiddle.net/dGWJp/

  • 字间距,行间距
word-spacing:50px; //字间距
line-height:50px; //行间距
  • 加border边框
border-bottom: 1px solid #000;
border-width: 5px;

content: url('../images/selfProfile/icon-email.png');transform: scale(.5);

  • ng-bind和{{}}的区别:

If you are not using ng-bind, instead something like this:

<div> Hello, {{user.name}}</div>

you might see the actual Hello, {{user.name}} for a second before user.name is resolved (before the data is loaded)
You could do something like this

<div> Hello, <span ng-bind="user.name"></span></div>

if that's an issue for you.

  • How to center a button within a div?
button{ 
height:20px; 
width:100px; 
margin: -20px -50px; 
position:relative; 
top:50%;
 left:50%;}
or
div{ text-align:center;}
  • 跟PJ学的,自己设计css,代码可读性:
#selfInfo-email-logo::before{   font-family: Ionicons;   font-style: normal;   font-weight: 400;   font-variant: normal;   text-transform: none;   text-rendering: auto;   line-height: 1;   -webkit-font-smoothing: antialiased;   -moz-osx-font-smoothing: grayscale;   content: url('../images/selfProfile/icon-email.png');   transform: scale(.5);}
  • except one class:
table:not(.dojoxGrid) {color:red;}
  • span width:
    span里面的字全部显示,不...的情况下,span的宽度限制:
    width: 94%;display: inline-flex;
  • span 换行:
    white-space: normal;
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 199,711评论 5 468
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 83,932评论 2 376
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 146,770评论 0 330
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,799评论 1 271
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,697评论 5 359
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,069评论 1 276
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,535评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,200评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,353评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,290评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,331评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,020评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,610评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,694评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,927评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,330评论 2 346
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 41,904评论 2 341

推荐阅读更多精彩内容

  • 问答题47 /72 常见浏览器兼容性问题与解决方案? 参考答案 (1)浏览器兼容问题一:不同浏览器的标签默认的外补...
    _Yfling阅读 13,721评论 1 92
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 13,420评论 5 6
  • 你是否曾经有过这样的感觉呢— 对某种看似长远关系的依恋。 在这样的关系里,你会感到熟悉和安全。 甚至偶尔, 会错觉...
    多三岁阅读 191评论 0 0
  • 梦携冷雨拌沙尘, 叙一场离愁、错乱得那么真。 续珠的眼窝湿了的枕巾, 告诉你情是那么深, 他们是你放不下的人。 夏...
    姀月阅读 282评论 1 3
  • 我从小就发现我有一个秘密。 那就是我可以看见我眼睛里的数字。 小时候我并不以为然。 直到七岁那年的一天。 在那...
    得了吧君阅读 3,429评论 2 16