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
宁乡县|
巴林右旗|
涡阳县|
盐津县|
潢川县|
长宁县|
博野县|
常山县|
湖南省|
枣庄市|
民权县|
公主岭市|
清流县|
普安县|
桃园市|
龙江县|
怀柔区|
乌苏市|
邛崃市|
增城市|
郧西县|
锡林浩特市|
安义县|
梨树县|
镇坪县|
潮安县|
南汇区|
建湖县|
宾川县|
彭泽县|
房产|
曲水县|
安福县|
朝阳市|
普洱|
新野县|
彰化县|
沁阳市|
玉龙|
盐山县|
新余市|
|