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
武冈市|
兴化市|
武宁县|
渭南市|
金坛市|
若尔盖县|
绥江县|
宁远县|
娱乐|
嘉黎县|
辽宁省|
靖远县|
抚州市|
固原市|
南京市|
宜宾市|
姚安县|
弥渡县|
汝南县|
会泽县|
佛坪县|
昭觉县|
汉源县|
镇江市|
玉林市|
天长市|
右玉县|
晋城|
淳化县|
名山县|
绥化市|
孟津县|
徐汇区|
贵港市|
滦平县|
阿巴嘎旗|
呼图壁县|
古浪县|
铁岭县|
沙湾县|
南澳县|
|