2005年06月18日

图片素材来源网上.

还是选LIGHTY样式

body, html {
background:#020202 url(http://www.donews.net/images/www_donews_net/dodo/54776/o_tmpbg92.jpg) no-repeat;
    color: #555555;
    font-family:ms shell dlg;
    font-size:12px;
    margin: 0;
    line-height:150%;padding:0 ;
    text-align:center
  
}
#nadframe{display:none}
form{
margin-right: auto;
margin-left: auto;
font-size:14px;
}

.pagelayout{
    margin: auto;
    padding:0px 0px 0px 0px;
    width: 735px;
    font-size:14px;
    text-align:left;

}
a:visited, a:active, a:link {  
    color : #75824C;
    text-decoration : none;
}

a:hover {
    color: #75824C;
    text-decoration :none;
    border-bottom:1px dotted #333
}

blockquote {
    font-style : italic;
}

#header {

  color: #808080;
  font-size:12px;
  font-family:ms shell dlg;
  padding-top:0px;
  padding-right:20px;
  background:none;
  height:250px ;width:735px
}
#header span{float:left;padding-top:198px;padding-left:100px}
#header #Header1_HeaderTitle{
color: #000000;
 font-size:16px;font-family:arial;line-height:120%;font-weight:bold;color:#D44F3C
}
#main {float:left;padding: 15px 0px 0px 15px;width:540px;font-size:14px;line-height:160%;color: #555555;word-wrap:break-word;

}
#footer{clear:both;border-top:3px solid #c0c0c0;padding-top:10px;text-align:center;font-size:12px}

#menu {clear:both;padding:0;
    float:right;
    width:151px;padding-top:15px;
word-wrap:break-word;
border-left:1px dotted #c0c0c0;padding-left:5px
}
#menu h1 {
color:#808080;font-weight:bold;
    font-size: 12px;
    margin: 0px;
    height:21px;
    border-bottom:1px dotted #808080
}

#menu h3 {
    color:#808080;font-weight:bold;
    font-size: 12px;
    margin: 0px;
    height:21px;
    border-bottom:1px dotted #808080
 
}
#menu ul {
    list-style: none;
    padding: 0px;
    margin: 0px 0px 15px 5px;
    font-size: 12px;
}
#comments{font-size:12px;line-height:150%}
#comments a{font-weight:bold}
.postTitle{font-weight:bold}
.postTitle a,.postTitle a:link,.postTitle a:visited{color:#75824C;font-size:14px}

div,select,input{font-size:12px;word-wrap:break-word;}
div.block {

  font-size: 12px;
  text-align: justify;
}

div.block_footer {

  height: 67px;
}

div.post {
  padding-left: 0px;
}

.dateTitle{color:#808080;font-size:14px;font-weight:bold;line-height:280%}
div.posttitle {
  color: #75824C;
    font-family: "ms shell dlg";
    font-size: 14px;
    font-weight: bold;
}

.posttitle{height:30px;}
div.postText{line-height:160%;font-size:12px;}
.posttitle a:visited, .posttitle a:active, .posttitle a:link { 
    color:#75824C;
    text-decoration : none;
}

.posttitle a:hover {
    color: #75824C;
    text-decoration : none;padding:3px;
    border-bottom:1px dotted #75824C;
}
.postFoot{line-height:120%;border-bottom:1px dotted #808080;font-size:12px;}
div.itemdesc {
  color: #808080;
  font-size: 12px;
    text-transform: uppercase;
}

div.seperator {
 
  background-position: top left;
  background-repeat: no-repeat;
  margin: 15px 0px 10px 0px;
}

div.entrylistitem {
  padding-left: 20px;
  padding-bottom: 10px;
}

a.entrylisttitle, a.entrylisttitle:visited, a.entrylisttitle:link, a.entrylisttitle:active {
  color: #FF6600;
    font-size: 14px;
    font-weight: bold;
}

div.moreinfo {
  font-size: 12px;
  text-align: justify;
}

div.moreinfotitle {
    color: #FF2a00;
    font-size: 12px;
    font-weight: bold;
}

div.comments {
  font-size: 12px
}

div.comment {
font-size:12px;
  border: 0px dotted #DDDDDD;
  margin: 10px 0px 10px 0px;
  padding: 10px;
}

div.comment_author {
  margin: 5px 0px 5px 0px;font-size:12px;
}

div.comment_content {
  margin: 5px 0px 5px 0px;font-size:12px;
}

#postcomment {
    border: 0px solid #DDDDDD;
  font-size: 12px;
  padding: 10px;
  text-align: justify;
  margin-top: 15px;
  width: 435px;
}

#postcomment div {
    color: #808080;
  font-size: 12px;
    font-weight: bold;
  margin: 5px 0px 5px 0px;
}

#postcomment input.text, textarea {
  border: 1px solid #DDDDDD;
  font-size: 12px;
}

input.text {
    width : 300px; 
}

textarea {
    width : 300px;
    height : 200px; 
}

#relatedlinks ul {
    list-style : none;
    margin-left : 10px;
    padding : 0px;
}

h1.block_title{background:none;color:#f7f7f7}
.entrylistitem a.entrylisttitle{color:#75824C}
div.entrylistitem{background:#000}
div.block_footer{background:#000}
span.highlight
{
    background-color:Yellow;     
}
.block_title{font-size:14px;font-weight:bold}
.code{float:left;width:90%;padding:10px;border:1px dotted #75824C;}
.postFoot{clear:both;padding-top:6px}
br{clear:both;}

在TABLE布局中设计Form,一般都是用2个td来布局,如果不用table,用CSS怎么做呢?看看下面的代码

在线运行演示

2005年06月17日



2005年06月09日

图片素材来自网上
截图


还是选择LIGHTY

代码:
body, html {
background:#CCCC9A ;
    color: #555555;
    font-family:ms shell dlg;
    font-size:12px;
    margin: 0;
    line-height:150%;padding:10px 0 10px 0 ;
    text-align:center
  
}
#nadframe{display:none}
form{
margin-right: auto;
margin-left: auto;
font-size:14px;
}

.pagelayout{
    margin: auto;
    padding:0px 0px 0px 0px;
    width: 800px;
    font-size:14px;
    text-align:left;background:url(http://www.donews.net/images/www_donews_net/dodo/54776/o_Body.jpg)

}
a:visited, a:active, a:link {  
    color : #9F8248;
    text-decoration : none;
}

a:hover {
    color: #9F8248;
    text-decoration :none;padding:3px;
    background:#D7EDB7;
    border-bottom:1px dotted #333
}

blockquote {
    font-style : italic;
}

#header {
filter: revealTrans(Transition=5, Duration=23) ;
  text-align:right;
  color: #808080;
  font-size:12px;
  font-family:ms shell dlg;
  padding-top:0px;
  padding-right:20px;
  background:url(http://www.donews.net/images/www_donews_net/dodo/54776/o_8beijing.gif) no-repeat;
  height:210px ;width:100%
}
#header span{float:left;padding-top:160px;text-align:right;padding-left:180px;}
#header #Header1_HeaderTitle{
color: #000000;
 font-size:14px;font-family:arial;line-height:120%;font-weight:bold;color:#D44F3C
}
#main {float:left;padding: 15px 0px 0px 35px;width:540px;font-size:14px;line-height:160%;color: #555555;word-wrap:break-word;

}
#footer{clear:both;border-top:0px solid #c0c0c0;padding-top:10px;text-align:center;font-size:12px}

#menu {clear:both;padding:0;
    float:right;
    width:180px;padding-top:15px;
word-wrap:break-word;
border-left:1px dotted #c0c0c0;padding-left:5px
}
#menu h1 {
    color:#C1B98A;padding:12px 0px 0px 5px;width:100%;
    font-size: 14px;
    font-weight:bold;
    margin: 0px;
    background:url(http://www.donews.net/images/www_donews_net/dodo/54776/o_h18.gif) no-repeat;height:21px
}

#menu h3 {
    color:#C1B98A;padding:12px 0px 0px 5px;width:100%;
    font-size: 14px;
    font-weight:bold;
    margin: 0px;
    background:url(http://www.donews.net/images/www_donews_net/dodo/54776/o_h18.gif) no-repeat;height:21px
 
}
#menu ul {
    list-style: none;
    padding: 0px;
    margin: 0px 22px 15px 5px;
    font-size: 12px;
}
#comments{font-size:12px;line-height:150%}
#comments a{font-weight:bold}
.postTitle{font-weight:bold}
.postTitle a,.postTitle a:link,.postTitle a:visited{color:#9F8248;font-size:14px}


div,select,input{font-size:12px;word-wrap:break-word;}
div.block {
  background-image: url(images/main_background.gif);
  background-position: top left;
  background-repeat: repeat-y;
  font-size: 12px;
  text-align: justify;
}

div.block_footer {
  background-image: url(images/day_footer.gif);
  background-position: top left;
  background-repeat: no-repeat;
  height: 67px;
}

div.post {
  padding-left: 0px;
}

.dateTitle{color:#808080;font-size:14px;font-weight:bold;line-height:280%}
div.posttitle {
  color: #9F8248;
    font-family: "ms shell dlg";
    font-size: 14px;
    font-weight: bold;
}

.posttitle{background:#FFF url(http://www.donews.net/images/www_donews_net/dodo/54776/o_li8.gif) no-repeat;height:30px;padding-left:30px}
div.postText{line-height:160%;font-size:12px;}
.posttitle a:visited, .posttitle a:active, .posttitle a:link { 
    color:#9F8248;
    text-decoration : none;
}

.posttitle a:hover {
    color: #9F8248;
    text-decoration : none;padding:3px;
    border-bottom:1px dotted #9F8248;
}
.postFoot{line-height:120%;border-bottom:1px dotted #808080;font-size:12px;}
div.itemdesc {
  color: #808080;
  font-size: 12px;
    text-transform: uppercase;
}

div.seperator {
 
  background-position: top left;
  background-repeat: no-repeat;
  margin: 15px 0px 10px 0px;
}

div.entrylistitem {
  padding-left: 20px;
  padding-bottom: 10px;
}

a.entrylisttitle, a.entrylisttitle:visited, a.entrylisttitle:link, a.entrylisttitle:active {
  color: #FF6600;
    font-size: 14px;
    font-weight: bold;
}

div.moreinfo {
  font-size: 12px;
  text-align: justify;
}

div.moreinfotitle {
    color: #FF2a00;
    font-size: 12px;
    font-weight: bold;
}

div.comments {
  font-size: 12px
}

div.comment {
    background-color: #FBFBFB;font-size:12px;
  border: 0px dotted #DDDDDD;
  margin: 10px 0px 10px 0px;
  padding: 10px;
}

div.comment_author {
  margin: 5px 0px 5px 0px;font-size:12px;
}

div.comment_content {
  margin: 5px 0px 5px 0px;font-size:12px;
}

#postcomment {
    border: 0px solid #DDDDDD;
    background-color: #FBFBFB;
  font-size: 12px;
  padding: 10px;
  text-align: justify;
  margin-top: 15px;
  width: 435px;
}

#postcomment div {
    color: #808080;
  font-size: 12px;
    font-weight: bold;
  margin: 5px 0px 5px 0px;
}

#postcomment input.text, textarea {
  border: 1px solid #DDDDDD;
  font-size: 12px;
}

input.text {
    width : 300px; 
}

textarea {
    width : 300px;
    height : 200px; 
}

#relatedlinks ul {
    list-style : none;
    margin-left : 10px;
    padding : 0px;
}

span.highlight
{
    background-color:Yellow;     
}
.block_title{font-size:14px;font-weight:bold}
.code{float:left;width:90%;padding:10px;border:1px dotted #d9d9d9;background:#f4f4f4;}
.postFoot{clear:both;padding-top:6px}
br{clear:both;}


2005年06月03日

图片在页面上的页面上的的位置体现是方形,不会是圆形或者多边形,这样做图片周围的文字环绕也就只能按方形来排列,
可以用DIV+CSS来做到不规则形状的文字环绕

在线运行演示

2005年06月02日

图片素材来自:http://www.fmemoria.com.br/welcome.asp
还是选择LIGHTY



自定义CSS
body, html {
background:#FFF url(http://www.donews.net/images/www_donews_net/dodo/54776/o_niubg.jpg);
    color: #555555;
    font-family:ms shell dlg;
    font-size:12px;
    margin: 0;
    line-height:150%;padding:10px 0 10px 0 ;
    text-align:center
  
}
#nadframe{display:none}
form{
margin-right: auto;
margin-left: auto;
font-size:14px;
}

.pagelayout{border-top:5px solid #d9d9d9;
    margin: auto;
    padding:0px 0px 0px 0px;
    width: 735px;
    font-size:14px;
    text-align:left;background:#fff

}
a:visited, a:active, a:link {  
    color : #75824C;
    text-decoration : none;
}

a:hover {
    color: #75824C;
    text-decoration :none;padding:3px;
    background:#D7EDB7;
    border-bottom:1px dotted #333
}

blockquote {
    font-style : italic;
}

#header {
  text-align:right;
  color: #808080;
  font-size:12px;
  font-family:ms shell dlg;
  padding-top:0px;
  padding-right:20px;
  background:url(http://www.donews.net/images/www_donews_net/dodo/54776/o_niutitle.jpg) 0 0 no-repeat;height:156px ;width:735px
}
#header span{float:left;padding-top:10px;text-align:right;width:707px;}
#header #Header1_HeaderTitle{
color: #000000;
 font-size:14px;font-family:arial;line-height:120%;font-weight:bold;color:#D44F3C
}
#main {float:left;padding: 15px 0px 0px 15px;width:540px;font-size:14px;line-height:160%;color: #555555;word-wrap:break-word;

}
#footer{clear:both;border-top:3px solid #c0c0c0;padding-top:10px;text-align:center;font-size:12px}

#menu {clear:both;padding:0;
    float:right;
    width:151px;padding-top:15px;
word-wrap:break-word;
border-left:1px dotted #c0c0c0;padding-left:5px
}

#menu h1 {
    color:#808080;padding:2px 0px 0px 23px;width:146px;
    font-size: 12px;
    font-weight:normal;
    margin: 0px;
    background:url(http://www.donews.net/images/www_donews_net/dodo/54776/o_niunav.jpg) no-repeat;height:21px
}

#menu h3 {
    color:#808080;padding:2px 0px 0px 23px;width:146px;
    font-size: 12px;
    font-weight:normal;
    margin: 0px;
    background:url(http://www.donews.net/images/www_donews_net/dodo/54776/o_niunav.jpg) no-repeat;height:21px
 
}
#menu ul {
    list-style: none;
    padding: 0px;
    margin: 0px 0px 15px 5px;
    font-size: 12px;
}
#comments{font-size:12px;line-height:150%}
#comments a{font-weight:bold}
.postTitle{font-weight:bold}
.postTitle a,.postTitle a:link,.postTitle a:visited{color:#75824C;font-size:14px}


div,select,input{font-size:12px;word-wrap:break-word;}
div.block {
  background-image: url(images/main_background.gif);
  background-position: top left;
  background-repeat: repeat-y;
  font-size: 12px;
  text-align: justify;
}

div.block_footer {
  background-image: url(images/day_footer.gif);
  background-position: top left;
  background-repeat: no-repeat;
  height: 67px;
}

div.post {
  padding-left: 0px;
}

.dateTitle{color:#808080;font-size:14px;font-weight:bold;line-height:280%}
div.posttitle {
  color: #75824C;
    font-family: "ms shell dlg";
    font-size: 14px;
    font-weight: bold;
}

.posttitle{background:#FFF url(http://www.donews.net/images/www_donews_net/dodo/54776/o_title1.gif) no-repeat;height:30px;padding-left:30px}
div.postText{line-height:160%;font-size:12px;}
.posttitle a:visited, .posttitle a:active, .posttitle a:link { 
    color:#75824C;
    text-decoration : none;
}

.posttitle a:hover {
    color: #75824C;
    text-decoration : none;padding:3px;
    border-bottom:1px dotted #75824C;
}
.postFoot{line-height:120%;border-bottom:1px dotted #808080;font-size:12px;}
div.itemdesc {
  color: #808080;
  font-size: 12px;
    text-transform: uppercase;
}

div.seperator {
 
  background-position: top left;
  background-repeat: no-repeat;
  margin: 15px 0px 10px 0px;
}

div.entrylistitem {
  padding-left: 20px;
  padding-bottom: 10px;
}

a.entrylisttitle, a.entrylisttitle:visited, a.entrylisttitle:link, a.entrylisttitle:active {
  color: #FF6600;
    font-size: 14px;
    font-weight: bold;
}

div.moreinfo {
  font-size: 12px;
  text-align: justify;
}

div.moreinfotitle {
    color: #FF2a00;
    font-size: 12px;
    font-weight: bold;
}

div.comments {
  font-size: 12px
}

div.comment {
    background-color: #FBFBFB;font-size:12px;
  border: 0px dotted #DDDDDD;
  margin: 10px 0px 10px 0px;
  padding: 10px;
}

div.comment_author {
  margin: 5px 0px 5px 0px;font-size:12px;
}

div.comment_content {
  margin: 5px 0px 5px 0px;font-size:12px;
}

#postcomment {
    border: 0px solid #DDDDDD;
    background-color: #FBFBFB;
  font-size: 12px;
  padding: 10px;
  text-align: justify;
  margin-top: 15px;
  width: 435px;
}

#postcomment div {
    color: #808080;
  font-size: 12px;
    font-weight: bold;
  margin: 5px 0px 5px 0px;
}

#postcomment input.text, textarea {
  border: 1px solid #DDDDDD;
  font-size: 12px;
}

input.text {
    width : 300px; 
}

textarea {
    width : 300px;
    height : 200px; 
}

#relatedlinks ul {
    list-style : none;
    margin-left : 10px;
    padding : 0px;
}

span.highlight
{
    background-color:Yellow;     
}
.block_title{font-size:14px;font-weight:bold}
.code{float:left;width:90%;padding:10px;border:1px dotted #d9d9d9;background:#f4f4f4;}
.postFoot{clear:both;padding-top:6px}
br{clear:both;}