上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
  2012年9月6日
摘要: 一、基本选择器序号 选择器 含义1. * 通用元素选择器,匹配任何元素2. E 标签选择器,匹配所有使用E标签的元素3. .info class选择器,匹配所有class属性中包含info的元素4. #footer id选择器,匹配所有id属性等于footer的元素实例:* { margin:0; padding:0; }p { font-size:2em; }.info { background:#ff0; }p.info { background:#ff0; }p.info.error { color:#900; font-weight:bold; }#info { background: 阅读全文
posted @ 2012-09-06 10:24 cbwcwy 阅读(407) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>CSS cursor 属性示例</title> <mce:sty 阅读全文
posted @ 2012-09-06 10:07 cbwcwy 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: 什么是继承?要想了解css样式表的继承,我们先从文档树(HTML DOM)开始。文档树由HTML元素组成。文档树和家族树类似,也有祖先、后代、父亲、孩子和兄弟^_^。这很容易理解吧,笔者在这里就不一一赘述了。希望深入了解的朋友请google之。那么CSS样式表继承指的是,特定的CSS属性向下传递到子孙元素。下面举个例子,有如下html代码片段:<p>CSS样式表<em>继承特性</em>的演示代码</p>需要注意的是em是包含在p之内的。当我们指定p的css样式时,看看em会有什么变化呢?<style>p { color:red; } 阅读全文
posted @ 2012-09-06 10:03 cbwcwy 阅读(990) 评论(0) 推荐(2) 编辑
摘要: 无 阅读全文
posted @ 2012-09-06 10:01 cbwcwy 阅读(145) 评论(0) 推荐(0) 编辑
  2012年9月3日
摘要: 阅读全文
posted @ 2012-09-03 14:45 cbwcwy 阅读(116) 评论(0) 推荐(0) 编辑
  2012年9月1日
摘要: <html><head><style type="text/css">#logo{background:url("bg.gif") no-repeat 100px 50px;}#logo a{text-indent:-9999px;display:block;height:125px;outline:none}</style></head><body><h2 id="logo" style="-webkit-transform: rotate(1d 阅读全文
posted @ 2012-09-01 21:51 cbwcwy 阅读(243) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css">div { width: 200px; }h2 { font: 400 40px/1.5 Helvetica, Verdana, sans-serif; margin: 0; padding: 0; }ul { list-style-type: none; margin: 0; padding: 0; }li { font: 200 20px/1.5 Helvetica, Verdana, sans-serif; border-bottom: 1px solid #ccc; }li:last-child { bord 阅读全文
posted @ 2012-09-01 14:15 cbwcwy 阅读(1604) 评论(0) 推荐(0) 编辑
摘要: <!--IE浏览器兼容--><script language="javascript">function ie(){var isIE=!!window.ActiveXObject;var isIE6=isIE&&!window.XMLHttpRequest;var isIE8=isIE&&!!document.documentMode;var isIE7=isIE&&!isIE6&&!isIE8;if (isIE){ if (isIE6){ var style = document.cr 阅读全文
posted @ 2012-09-01 14:05 cbwcwy 阅读(1664) 评论(0) 推荐(0) 编辑
摘要: <html><head><style type="text/css">ul{list-style:none;border-left:1px solid grey;padding:10px 0;margin-left:auto;margin-right:auto;width:200px;}li#yuanjiao{width:100px;height:35px;border:1px solid grey;border-left:0px solid grey;margin:6px 0px;border-radius:0px 15px 15px 阅读全文
posted @ 2012-09-01 13:56 cbwcwy 阅读(560) 评论(0) 推荐(0) 编辑
  2012年8月29日
摘要: 单个源文件生成可执行程序下面是一个保存在文件 helloworld.cpp 中一个简单的 C++ 程序的代码:/* helloworld.cpp */#include <iostream>int main(int argc,char *argv[]){ std::cout << "hello, world" << std::endl; return(0);}程序使用定义在头文件 iostream 中的 cout,向标准输出写入一个简单的字符串。该代码可用以下命令编译为可执行文件:$ g++ helloworld.cpp编译器 g++ 通过 阅读全文
posted @ 2012-08-29 12:25 cbwcwy 阅读(46105) 评论(1) 推荐(3) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页