博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年12月7日

摘要: <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>background</title><style>div{border:1px solid #ff0000;}.yy{width:500px;height:500px;background:url(attachments/month_1112/p2011127145050.jpg) no-repeat;}.yy 阅读全文

posted @ 2011-12-07 15:01 southy 阅读(115) 评论(0) 推荐(0)

2011年11月22日

摘要: 一个浮游在边框之上的HTML标签,很少出现,但确很好用,其语法如下:<fieldset><legend>头部名称</legend> 内容</fieldset>示例:<fieldset style=" width:300px"><legend>用户登陆</legend><form method="post">帐号:<input ></input><br><br>密码:<input type="pas 阅读全文

posted @ 2011-11-22 15:03 southy 阅读(151) 评论(0) 推荐(0)

摘要: JavaScript 最基础四个方法<style>body { color:#fff; background:#000; }p { color:yellow; }</style><body><h1>What to buy</h1><p title="a gentle reminder">Don't forget to buy this stuff.</p><p>Don't forget to buy this stuff222.</p><ul i 阅读全文

posted @ 2011-11-22 13:46 southy 阅读(191) 评论(0) 推荐(0)

2011年11月8日

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文

posted @ 2011-11-08 09:46 southy 阅读(209) 评论(0) 推荐(0)

2011年8月29日

摘要: 在CSS的选择器中还有一种十分有用的子选择器,它用来选择一个父元素直接的子元素,不包括子元素的子元素,她的符号为大于好">"。<html><head><title>CSS的子选择器</title><style type="text/css">ul.myList > li > a{ /* 子选择器 */ text-decoration:none; /* 没有下划线 */ color:#336600;}</style></head><body>& 阅读全文

posted @ 2011-08-29 14:31 southy 阅读(258) 评论(1) 推荐(1)