七七@深水
努力记住一些
初学web标准的几个误区   -[学习日志 DIV+CSS 网页标准化 ]
web标准的几个误区
阅读全文    小7  发表于2007-08-09  11:53    编辑    评论(0)    引用(0)
此夜----无关风和月   -[一个人的生活 学习日志 在路上 ]

晃悠了这么多天,终于有了感觉自我突破的进步.像什么呢.心里竟有一种在壳里啄开了一丁点天空看到光亮的感觉..心里有只鸟,在跳.

最重要的是要走正确的路.要不,前面的虽然增加经验,但也是徒增经验而已.

阿门,瓶颈处突破,竟别有洞天.自己乐在其中.

放一点收集来的CSS模式在这里吧.平时应该可以对自己有参考.

XHTML模式: (其中doctype选择自己用到的,其它的按需要填入就好了..)


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">




http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />

CSS全模式一:

/* ----- IDS ----- */
#container{
}
#primaryContent{
}
#secondaryContent{
}
#navigation{
}
#footer{
}
/* ----- CLASSES ----- */
.hide{
}
.show{
}
/* ----- HEADINGS ----- */
h1{
}
h2{
}
h3{
}
h4{
}
/* ----- LISTS ----- */ li{
}
li p{
}
ol{
}
ul{
}
ol li{
}
ul li{
}
/* ----- IMAGES ----- */
img{
}
img a{
}
img a:hover{
}
/* ----- LINKS ----- */
a{
}
a:hover{
}
a:visited, a:active, a:focus{
}
a:visited{
}
a:active{
}
a:focus{
}
/* ----- FORMS ----- */
form{
}
fieldset{
}
legend{
}
label{
}
input{
}
textarea{
}
input, textarea{
}
select{
}
optgroup{
}
option{
}
/* ----- TABLES ----- */
table{
}
caption{
}
thead{
}
tbody{
}
tfoot{
}
tr{
}
tr .alt{
}
th{
}
td{
}

在这些标签里,加上恰当的id和class 即可进行控制。没有用到的话,只需删掉.

CSS模式2:(基于CSS模式一为所有CSS选择器添加经常会用的CSS性质.)

/* ----- CSS ----- */
*{
margin:;
padding:;
font-family:;
font-size:;
}
body{
margin:;
padding:;
background:;
}
/* ----- IDS ----- */
#container{
width:;
margin:;
padding:;
background:;
text-align:;
}
#primaryContent{
position:;
float:;
width:;
margin:;
padding:;
background:;
text-align:;
}
/* ----- CLASSES ----- */
.hide{
display:none;
} .show{
display:block;
}
/* ----- PARAGRAPHS ----- */
p{
font:;
color:;
font-size:;
font-family:;
font-style:;
font-weight:;
font-variant:;
text-align:;
text-indent:;
text-decoration:;
text-shadow:;
text-transform:;
letter-spacing:;
word-spacing:;
}
/* ----- LISTS ----- */
li{
listy-style:;
list-style-type:;
list-style-image:;
list-style-position:;
float:;
margin:;
padding:;
}
/* ----- LINKS ----- */
a{
font:;
color:;
text-decoration:;
border-bottom:;
}
a:hover{
color:;
background-color:;
border-bottom:;
}
a:visited, a:active, a:focus{
color:;
background-color:;
border-bottom:;
}

HTML标记模式:(没有XHTML标记来示范,上面那些CSS选择器和性质怎么展现呢  ^_^)


Untitled - Online Style Guide Template (h1)


Title : Title of this Document

Description : A description of this document that explains how this guide should be used.


Author : The Author

URL: http://url.to.reference.com


Created : Month DD, YYYY

Modified : Month DD, YYYY








Primary Content (h2)


Headline the Third (h3)


Headline the Fourth (h4)


First paragraph. In typography, a paragraph is a block of text. Paragraphs are the medium-size unit of human-language text. A group of sentences developing a single idea from a topic sentence. Some words in sentences need to be bolded, italicized, strengthened or emphasized.

Another paragraph. In typography, a paragraph is a block of text. Paragraphs are the medium-size unit of human-language text. A group of sentences developing a single idea from a topic sentence.




  1. Ordered List - First item.
  2. Another item with a link.

  3. Another item that is linked.

  4. Last item.



可适时添加和修改.总之.一切为更好的设计出发.
部分涉技术代码搜集自:http://particletree.com/features/quick-start-your-design-with-xhtml-templates/

PS:前些日子无意中发现了有做的有些简陋的CSS在线编辑器.实用.可惜属性少了些..如果有专门的转中文和可视化的CSS编辑软件,那该是设计界何等幸事啊.----但愿有人看到此商机,或,高手,做一个先.(其实DW的也不错.只有如此想了)..

更多代码,以待后补.呵呵.七七,不要停顿啊.有词叫趁热打铁..祝你在设计路上越来越少弯路..^_^

又PS:国内的很多在遵循阿捷的重构标准.可市面上好像只有这一种了.各个网站转载,皆这个.多了就感觉不够用了.而且,现在想想,有些地方还是有些连贯不起来.特别是对我这样的小菜鸟来说.有指中心脏的地方,但稍有偏离..

英语,英语..急需恶补...

阅读全文    小7  发表于2006-07-12  00:00    编辑    评论(0)    引用(0)
有关CSS+xhtml   -[一个人的生活 学习日志 ]

看了大部分的博客,查看源代码,发现都是DIV。

Table真的要弃置不用了么?学Div有些吃力。将近半个月了,代码方面没有什么进展。看了大量的CSS用法,包括CSS2.0手册,一点点看。

可是还是不能做出像样的用DIV控制精当的页面。简单的亦做的生硬。

驾轻就熟,也许我要求自己过高了。可是老感觉没时间,嗖的一下,一天在看代码中过去了。无进展。又嗖的一下,又一天过去了。我白花花的时间啊。。

探身窗外,有风。我都忘了外面的世界了。

不能放弃。不能放弃。要不还会有你重拾的一天的。就这一次,再往前撑撑吧。

阅读全文    小7  发表于2006-07-06  00:00    编辑    评论(0)    引用(0)

共1页 1



Rss