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
包头市|
溧水县|
合山市|
永胜县|
洱源县|
尼勒克县|
安庆市|
正宁县|
焦作市|
吉林省|
九龙县|
延吉市|
麻江县|
封丘县|
肃南|
孝义市|
易门县|
阿拉善左旗|
博野县|
新乡县|
桃江县|
平陆县|
万安县|
绥宁县|
盐亭县|
体育|
孝义市|
青海省|
湟中县|
安图县|
延边|
基隆市|
凤翔县|
额济纳旗|
阳原县|
广河县|
都昌县|
鄂尔多斯市|
澄城县|
宁阳县|
潮州市|
|