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
莆田市|
甘德县|
罗田县|
印江|
峨山|
山东省|
明水县|
静安区|
土默特左旗|
黔西县|
正蓝旗|
封丘县|
嘉祥县|
武乡县|
桐梓县|
郎溪县|
崇义县|
林周县|
定南县|
墨竹工卡县|
西乌|
陈巴尔虎旗|
四平市|
莎车县|
淮北市|
蓬溪县|
行唐县|
铜川市|
黑水县|
鲁甸县|
河北省|
海淀区|
渭源县|
武穴市|
盘锦市|
西藏|
金堂县|
清镇市|
本溪市|
澄城县|
盈江县|
|