https://doi.org/10.1007/3-540-11572-2As we saw in the exercises at the end of Chapter 1, .. The mistaken idea of choosing our markup solely for its presentation, as epitomized by -based layouts and spacer.gifs, has been thoroughly shown the door by the ?standardista? movement. Instead, our rallying cry is
|
|
|
|
|
|
|
|
|
|
|
Basic Formalisms and DefinitionsIn order to style an element with CSS, we need to be able to target it. Enter CSS selectors, which allow us to target specific elements in the DOM. |
|
|
|
|
|
|
|
|
|
|
|
Your First Plunge into HTML5,In our first chapter we covered the background of HTML5, why we should start using it now, and some modern web standards development principles. In this chapter, we’ll get started with creating some actual HTML5 web pages. |
|
|
|
|
|
|
|
|
|
|
function setTab(name,cursel){
cursel_0=cursel;
for(var i=1; i<=links_len; i++){
var menu = document.getElementById(name+i);
var menudiv = document.getElementById("con_"+name+"_"+i);
if(i==cursel){
menu.className="off";
menudiv.style.display="block";
}
else{
menu.className="";
menudiv.style.display="none";
}
}
}
function Next(){
cursel_0++;
if (cursel_0>links_len)cursel_0=1
setTab(name_0,cursel_0);
}
var name_0='one';
var cursel_0=1;
var ScrollTime=3000;//循環(huán)周期(毫秒)
var links_len,iIntervalId;
onload=function(){
var links = document.getElementById("tab1").getElementsByTagName('li')
links_len=links.length;
for(var i=0; i
宣汉县|
景德镇市|
黄浦区|
肥乡县|
阳山县|
碌曲县|
台前县|
喀喇沁旗|
托克托县|
桓仁|
台山市|
蛟河市|
伽师县|
蓬溪县|
德兴市|
左权县|
子长县|
饶平县|
同心县|
湘潭市|
滦平县|
达州市|
西藏|
扬中市|
观塘区|
利辛县|
澄江县|
临泉县|
宜宾市|
科尔|
柯坪县|
汪清县|
翁源县|
五家渠市|
会昌县|
临高县|
河间市|
吴堡县|
赤峰市|
嘉善县|
兖州市|
|