<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>
<table border="1" id="table">
<caption>我是表格</caption>
<thead>
<th>aa</th>
<th>bb</th>
<th>cc</th>
</thead>
<tbody>
<tr>
<td>11</td>
<td>22</td>
<td>33</td>
</tr>
<tr>
<td>44</td>
<td>55</td>
<td></td>
</tr>
</tbody>
</table>
<br>
<button id="bc">border-collpase</button>
<button id="bs">border-spacing</button>
<button id="cs">caption-side</button>
<button id="ec">empty-cells</button>
<button id="reset">重設</button>
<script type="text/javascript">
$('#bc').click(function(){
$('#table').css('border-collapse','collapse');
});
$('#bs').click(function(){
$('#table').css('border-spacing','+=10');
});
$('#cs').click(function(){
$('#table').css('caption-side','bottom');
});
$('#ec').click(function(){
$('#table').css('empty-cells','hide');
});
$('#reset').click(function(){
$('#table').css('border-collapse','separate');
$('#table').css('border-spacing','2px');
$('#table').css('empty-cells','show');
$('#table').css('caption-side','top');
});
</script>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(3)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>
<table border="1" id="table">
<caption>我是表格</caption>
<thead>
<th>aa</th>
<th>bb</th>
<th>cc</th>
</thead>
<tbody>
<tr>
<td>11</td>
<td>22</td>
<td>33</td>
</tr>
<tr>
<td>44</td>
<td>55</td>
<td></td>
</tr>
</tbody>
</table>
<br>
<button id="bc">border-collpase</button>
<button id="bs">border-spacing</button>
<button id="cs">caption-side</button>
<button id="ec">empty-cells</button>
<button id="reset">重設</button>
<script type="text/javascript">
$('#bc').click(function(){
$('#table').css('border-collapse','collapse');
});
$('#bs').click(function(){
$('#table').css('border-spacing','+=10');
});
$('#cs').click(function(){
$('#table').css('caption-side','bottom');
});
$('#ec').click(function(){
$('#table').css('empty-cells','hide');
});
$('#reset').click(function(){
$('#table').css('border-collapse','separate');
$('#table').css('border-spacing','2px');
$('#table').css('empty-cells','show');
$('#table').css('caption-side','top');
});
</script>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<style type="text/css">
</style>
</head>
<body>
<img src="https://api.fnkr.net/testimg/200x200/00a/fff/?text=A">
<img src="https://api.fnkr.net/testimg/200x200/0a0/fff/?text=B" id="b">
<img src="https://api.fnkr.net/testimg/200x200/a00/fff/?text=C">
<br>
<button id="dn">display:none</button>
<button id="op">opacity:0</button>
<button id="vh">visibility:hidden</button>
<button id="reset">重設</button>
<script type="text/javascript">
$('#dn').click(function(){
$('#b').css('display','none')
});
$('#op').click(function(){
$('#b').css('opacity','0')
});
$('#vh').click(function(){
$('#b').css('visibility','hidden')
});
$('#reset').click(function(){
$('#b').css({
'display':'inline',
'opacity':'1',
'visibility':'visible'
});
});
</script>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<style type="text/css">
</style>
</head>
<body>
<img src="https://api.fnkr.net/testimg/200x200/00a/fff/?text=A">
<img src="https://api.fnkr.net/testimg/200x200/0a0/fff/?text=B" id="b">
<img src="https://api.fnkr.net/testimg/200x200/a00/fff/?text=C">
<br>
<button id="dn">display:none</button>
<button id="op">opacity:0</button>
<button id="vh">visibility:hidden</button>
<button id="reset">重設</button>
<script type="text/javascript">
$('#dn').click(function(){
$('#b').css('display','none')
});
$('#op').click(function(){
$('#b').css('opacity','0')
});
$('#vh').click(function(){
$('#b').css('visibility','hidden')
});
$('#reset').click(function(){
$('#b').css({
'display':'inline',
'opacity':'1',
'visibility':'visible'
});
});
</script>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(125)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.imgbecliped{
position: absolute;
clip:rect(0px 200px 200px 0px);
transition: 1s;
}
.imgbecliped:hover{
animation:clip 2s forwards;
transition: 1s;
}
@keyframes clip{
0%{
clip:rect(0px 200px 200px 0px);
}
25%{
clip:rect(50px 200px 200px 0px);
}
50%{
clip:rect(50px 200px 200px 50px);
}
75%{
clip:rect(50px 150px 200px 50px);
}
100%{
clip:rect(50px 150px 150px 50px);
}
}
</style>
</head>
<body>
<img src="https://api.fnkr.net/testimg/200x200/00a/FFF/?text=A" class="imgbecliped">
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.imgbecliped{
position: absolute;
clip:rect(0px 200px 200px 0px);
transition: 1s;
}
.imgbecliped:hover{
animation:clip 2s forwards;
transition: 1s;
}
@keyframes clip{
0%{
clip:rect(0px 200px 200px 0px);
}
25%{
clip:rect(50px 200px 200px 0px);
}
50%{
clip:rect(50px 200px 200px 50px);
}
75%{
clip:rect(50px 150px 200px 50px);
}
100%{
clip:rect(50px 150px 150px 50px);
}
}
</style>
</head>
<body>
<img src="https://api.fnkr.net/testimg/200x200/00a/FFF/?text=A" class="imgbecliped">
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(10)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
body{
counter-reset: section;
}
h1{
counter-reset: subsection;
}
h1:before{
counter-increment: section;
content:'段落' counter(section) ':';
}
h2:before{
counter-increment: subsection;
content:counter(section) '-' counter(subsection) ':';
}
</style>
</head>
<body>
<h1>水果</h1>
<h2>蘋果</h2>
<h2>香蕉</h2>
<h2>芭樂</h2>
<h1>季節</h1>
<h2>春</h2>
<h2>夏</h2>
<h2>秋</h2>
<h2>冬</h2>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(0)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
body{
counter-reset: section;
}
h1{
counter-reset: subsection;
}
h1:before{
counter-increment: section;
content:'段落' counter(section) ':';
}
h2:before{
counter-increment: subsection;
content:counter(section) '-' counter(subsection) ':';
}
</style>
</head>
<body>
<h1>水果</h1>
<h2>蘋果</h2>
<h2>香蕉</h2>
<h2>芭樂</h2>
<h1>季節</h1>
<h2>春</h2>
<h2>夏</h2>
<h2>秋</h2>
<h2>冬</h2>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(7)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.afterwordspacing{
word-spacing: 50px;
}
</style>
</head>
<body>
<span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation</span>
<hr>
<span class="afterwordspacing">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco </span>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(1)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.afterwordspacing{
word-spacing: 50px;
}
</style>
</head>
<body>
<span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation</span>
<hr>
<span class="afterwordspacing">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco </span>
</body>
</html>
Jerry 發表在 痞客邦 留言(0) 人氣(0)