Table data is normally repeatable by nature. ng-repeat directive can be used to draw table easily. Following example states the use of ng-repeat directive to draw a table. <table> <tr> <th> Name </th> <th> Marks </th> </tr> <tr ng-repeat = "subject in student.subjects" > <td> {{ subject.name }} </td> <td> {{ subject.marks }} </td> </tr> </table> Table can be styled using CSS Styling. <style> table , th , td { border : 1px solid grey ; border - collapse : collapse ; padding : 5px ; } table tr : nth - child ( odd ) { background - color : #f2f2f2; } table tr : nth - child ( even ) { background - color : #ffffff; } </style> Example Following example will showcase all the above mentioned directive. <html> <head> <...
<!-- this script got from www.crestinfotech.com-Coded by: Manish Wagh -->
<html>
<head>
</head>
<body>
<script language="JavaScript" type="Text/JavaScript">
fifteenth = 0;sixteenth = 4;
function seventeenth(eighteenth,nineteenth){
if(document.layers) document.layers['twentieth'].top=eighteenth; else document.getElementById('twentieth').style.top=eighteenth;
if(eighteenth>nineteenth) sixteenth = -4;
if(eighteenth<60) sixteenth = 4; setTimeout('seventeenth('+(eighteenth+sixteenth)+','+nineteenth+')', 32);}
function first2(){
if(fifteenth) return fifteenth = 1;
if(navigator.appName=='Netscape') { document.getElementById('twentieth').left=innerWidth/2 - 140; seventeenth(60,innerHeight - 60);} else { twentieth.style.left=11; seventeenth(60,document.body.offsetHeight - 60); }}setTimeout('first2()',11);
</script>
<div id='twentieth' style='position: absolute; top: -65; color: red; font-family: "Courier New", Courier, mono; font-weight:bold; font-size:40px;'>Your Text Here</div>
<br/><div style="clear:both"></div><div><a target="_blank" href="http://www.crestinfotech.com/"><span style="font-size: 8pt; text-decoration: none">Manish Wagh</span></a></div>
</body>
</html>
<html>
<head>
</head>
<body>
<script language="JavaScript" type="Text/JavaScript">
fifteenth = 0;sixteenth = 4;
function seventeenth(eighteenth,nineteenth){
if(document.layers) document.layers['twentieth'].top=eighteenth; else document.getElementById('twentieth').style.top=eighteenth;
if(eighteenth>nineteenth) sixteenth = -4;
if(eighteenth<60) sixteenth = 4; setTimeout('seventeenth('+(eighteenth+sixteenth)+','+nineteenth+')', 32);}
function first2(){
if(fifteenth) return fifteenth = 1;
if(navigator.appName=='Netscape') { document.getElementById('twentieth').left=innerWidth/2 - 140; seventeenth(60,innerHeight - 60);} else { twentieth.style.left=11; seventeenth(60,document.body.offsetHeight - 60); }}setTimeout('first2()',11);
</script>
<div id='twentieth' style='position: absolute; top: -65; color: red; font-family: "Courier New", Courier, mono; font-weight:bold; font-size:40px;'>Your Text Here</div>
<br/><div style="clear:both"></div><div><a target="_blank" href="http://www.crestinfotech.com/"><span style="font-size: 8pt; text-decoration: none">Manish Wagh</span></a></div>
</body>
</html>
Comments
Post a Comment
Comment