1
2
3
|
background:url(../images/icon/all.png) no-repeat center center;
-webkit-background-size:50px 50px;
background-size: 50px 50px;display:inline-block; width:100%; height:50px;
|
1
|
<li><canvas></canvas></li>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
var total=17;
var zWin=$(window);
var render=function(){
var padding=2;
var winWidth=zWin.width();
var picWidth=Math.floor((winWidth-padding*3)/4);
var tmpl ='';
for (var i=1;i<=totla;i++){
var p=padding;
var imgSrc='img/'+i+'.jpg';
if(i%4==1){
p=0;
}
tmpl +='<li style="width:'+picWidth+'px;height:'+picWidth+'px;padding-left:'+p+'px;padding-top:'+padding+'px;"><canvas id="cvs_'+i+'"></canvas></li>';
var imageObj = new Image();
imageObj.index = i;
imageObj.onload = function(){
var cvs =$('#cvs_'+this.index)[0].getContext('2d');
cvs.width = this.width;
cvs.height=this.height;
cvs.drawImage(this,0,0);
}
imageObj.src=imgSrc;
}
}
render();
|
1
|
<meta name="format-detection" content="telephone=no">
|
1
|
<a href="tel:4008106999,1034">400-810-6999 轉 1034</a>
|
1
2
3
4
|
body {
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
|
1
2
3
4
5
6
|
Element {
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
user-select: none;
}
|
1
2
3
|
element {
-webkit-touch-callout: none;
}
|
1
2
3
|
Element{
-webkit-appearance: none;
}
|
1
2
3
|
Element {
-webkit-tap-highlight-color:rgba(255,255,255,0)
}
|
1
2
3
4
5
6
7
8
9
10
11
12
|
<style>
a {
color: #000;
}
a:active {
color: #fff;
}
</style>
<a herf=foo >bar</a>
<script>
document.addEventListener('touchstart',function(){},false);
</script>
|
1
2
3
|
Element{
border-width: thin;
}
|
1
2
3
4
5
|
if(
'WebkitMask' in document.documentElement.style){
alert('支持mask');
} else {
alert('不支持mask');
}
|
1
2
3
|
html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 {
-webkit-text-size-adjust:100%;
}
|
1
2
3
4
5
6
|
/設置內嵌的元素在 3D 空間如何呈現:保留3D /
-webkit-transform-style: preserve-3d;
/ 設置進行轉換的元素的背面在面對用戶時是否可見:隱藏 /
-webkit-backface-visibility:hidden;
|
1
|
background-clip: padding-box;
|
1
|
<meta name="apple-mobile-web-app-status-bar-style"
content="black" />
|
1
|
<meta http-equiv="Cache-Control"
content="no-cache" />
|
1
2
3
4
|
<link rel="apple-touch-icon" href="touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png" />
<link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png" />
|
1
|
<link rel="apple-touch-icon-precomposed" href="touch-icon-iphone.png" />
|
1
|
<link rel="apple-touch-startup-image" href="start.png"/>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!--iPhone-->
<link href="apple-touch-startup-image-320x460.png" media="(device-width: 320px)" rel="apple-touch-startup-image" />
<!-- iPhone Retina -->
<link href="apple-touch-startup-image-640x920.png" media="(device-width: 320px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<!-- iPhone 5 -->
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="apple-touch-startup-image-640x1096.png">
<!-- iPad portrait -->
<link href="apple-touch-startup-image-768x1004.png" media="(device-width: 768px) and (orientation: portrait)" rel="apple-touch-startup-image" />
<!-- iPad landscape -->
<link href="apple-touch-startup-image-748x1024.png" media="(device-width: 768px) and (orientation: landscape)" rel="apple-touch-startup-image" />
<!-- iPad Retina portrait -->
<link href="apple-touch-startup-image-1536x2008.png" media="(device-width: 1536px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image" />
<!-- iPad Retina landscape -->
<link href="apple-touch-startup-image-1496x2048.png"media="(device-width: 1536px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)"rel="apple-touch-startup-image" />
|
1
|
<meta name="x5-fullscreen" content="true">
|
1
|
<meta name="x5-orientation" content="portrait">
|
1
|
<meta name="x5-orientation" content="landscape">
|
1
|
<meta name="x5-page-mode" content="app">
|
1
|
<meta name="full-screen" content="yes">
|
1
|
<meta name="screen-orientation" content="portrait">
|
1
|
<meta name="screen-orientation" content="landscape">
|
1
|
<meta name="browsermode" content="application">
|
1
|
<meta name="HandheldFriendly" content="true">
|
1
|
<meta name="MobileOptimized" content="320">
|
1
|
<meta name="msapplication-tap-highlight" content="no">
|
1
2
3
4
5
6
|
<input type="text" id="testInput">
<script type="text/javascript">
document.getElementById('testInput').addEventListener('input', function(e){
var value = e.target.value;
});
</script>
|
1
2
3
4
5
6
7
|
<input type="number" oninput="checkTextLength(this ,10)">
function checkTextLength(obj, length) {
if(obj.value.length > length) {
obj.value = obj.value.substr(0, length);
}
}
|
1
|
<input type="number" step="0.01" />
|
1
|
<input type="number" step="3.1" min="1" />
|
1
2
3
4
5
6
7
8
|
input[type=number] {
-moz-appearance:textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
|
1
2
3
4
5
|
input,
textarea {
border: 0;
-webkit-appearance: none;
}
|
1
2
3
|
-webkit-transform: rotate(-4deg) skew(10deg) translateZ(0);
transform: rotate(-4deg) skew(10deg) translateZ(0);
outline: 1px solid rgba(255,255,255,0)
|
1
2
3
|
1
2
3
|
$('#haorooms').on('tap',function(){
$('#haorooms').hide();
});
|
1
2
3
4
|
document.addEventListener('touchstart', function () {
document.getElementsByTagName('audio')[0].play();
document.getElementsByTagName('audio')[0].pause();
});
|
1
2
3
|
#Search::-webkit-search-cancel-button{
display: none;
}
|
1
|
$(sltElement).trrgger("mousedown");
|
1
2
3
4
5
6
|
function showDropdown(sltElement) {
var event;
event = document.createEvent('MouseEvents');
event.initMouseEvent('mousedown', true, true, window);
sltElement.dispatchEvent(event);
};
|