CSS 一个完整的例子
My first web page
What this is
A simple page put together using HTML. I said a simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML.
Why this is
- To learn HTML
- To show off
- To my boss
- To my friends
- To my cat
- To the little talking duck in my brain
- Because I have fallen in love with my computer and want to give her some HTML loving.
Where to find the tutorial
Some random table
Row 1, cell 1 | Row 1, cell 2 | Row 1, cell 3 |
Row 2, cell 1 | Row 2, cell 2 | Row 2, cell 3 |
Row 3, cell 1 | Row 3, cell 2 | Row 3, cell 3 |
Row 4, cell 1 | Row 4, cell 2 | Row 4, cell 3 |
Some random form
Note: It looks the part, but won't do a damned thing.
//上述内容完全copy自html dog.
Name:
Comments:
Your comments
Are you:
Male
Female
An hermaphrodite
Asexual
//上述内容完全copy自html dog.
- <!DOCTYPE html>
- <html>
- <head>
- <title>My first web page</title>
- <!-- This is a comment, by the way -->
- <style type="text/css">
- body {
- font-family: arial, helvetica, sans-serif;
- font-size: 14px;
- color: black;
- background-color: #ffc;
- margin: 20px;
- padding: 0;
- }
- /* This is a comment, by the way */
- p {
- line-height: 21px;
- }
- h1 {
- color: #ffc;
- background-color: #900;
- font-size: 2em;
- margin: 0;
- margin-bottom: 7px;
- padding: 4px;
- font-style: italic;
- text-align: center;
- letter-spacing: 0.5em;
- border-bottom-style: solid;
- border-bottom-width: 0.5em;
- border-bottom-color: #c00;
- }
- h2 {
- color: white;
- background-color: #090;
- font-size: 1.5em;
- margin: 0;
- padding: 2px;
- padding-left: 14px;
- }
- h3 {
- color: #999;
- font-size: 1.25em;
- }
- img {
- border-style: dashed;
- border-width: 2px;
- border-color: #ccc;
- }
- a {
- text-decoration: none;
- }
- strong {
- font-style: italic;
- text-transform: uppercase;
- }
- li {
- color: #900;
- font-style: italic;
- }
- table {
- background-color: #ccc;
- }
- </style>
- </head>
- <body>
- <h1>My first web page</h1>
- <h2>What this is</h2>
- <p>A simple page put together using HTML. <em>I said a simple page put together using HTML.</em> A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML. A simple page put together using HTML.</p>
- <h2>Why this is</h2>
- <ul>
- <li>To learn HTML</li>
- <li>
- To show off
- <ol>
- <li>To my boss</li>
- <li>To my friends</li>
- <li>To my cat</li>
- <li>To the little talking duck in my brain</li>
- </ol>
- </li>
- <li>Because I have fallen in love with my computer and want to give her some HTML loving.</li>
- </ul>
- <h2>Where to find the tutorial</h2>
- <p>
- <a href="http://www.htmldog.com"><img src="http://www.htmldog.com/badge1.gif" width="120" height="90" alt="HTML Dog"></a>
- </p>
- <h3>Some random table</h3>
- <table>
- <tr>
- <td>Row 1, cell 1</td>
- <td>Row 1, cell 2</td>
- <td>Row 1, cell 3</td>
- </tr>
- <tr>
- <td>Row 2, cell 1</td>
- <td>Row 2, cell 2</td>
- <td>Row 2, cell 3</td>
- </tr>
- <tr>
- <td>Row 3, cell 1</td>
- <td>Row 3, cell 2</td>
- <td>Row 3, cell 3</td>
- </tr>
- <tr>
- <td>Row 4, cell 1</td>
- <td>Row 4, cell 2</td>
- <td>Row 4, cell 3</td>
- </tr>
- </table>
- <h3>Some random form</h3>
- <p><strong>Note:</strong> It looks the part, but won't do a damned thing.</p>
- <form action="somescript.php" method="post">
- <p>Name:</p>
- <p><input name="name" value="Your name"></p>
- <p>Comments: </p>
- <p><textarea rows="10" cols="20" name="comments">Your comments</textarea></p>
- <p>Are you:</p>
- <p><input type="radio" name="areyou" value="male"> Male</p>
- <p><input type="radio" name="areyou" value="female"> Female</p>
- <p><input type="radio" name="areyou" value="hermaphrodite"> An hermaphrodite</p>
- <p><input type="radio" name="areyou" value="asexual" checked> Asexual</p>
- <p><input type="submit"></p>
- </form>
- </body>
- </html>
上述内容完全copy自html dog.
cnblogs_css样式保存
- body {
- font-family:'comic sans ms',sans-serif;
- background: #00FF00 url(http://images2015.cnblogs.com/blog/1042431/201706/1042431-20170627223321649-1166499380.png) no-repeat fixed top;
- }
- #content {
- background: #FFF;
- box-shadow:0 10px 20px rgba(0,0,0,0.5);
- /*参数:水平阴影 竖直阴影 模糊距离!阴影的距离 阴影的颜色*/
- opacity:0.971;
- }
- #top {
- display: none;
- }
- #sub {
- visibility:hidden;
- }
- #green_channel {
- display: none;
- }
- #ad_t2 {
- display: none;
- }
- #cnblogs_c1 {
- display: none;
- }
- .itnews c_ad_block {
- display: none;
- }
- #cnblogs_c2 {
- display: none;
- }
CSS 一个完整的例子的更多相关文章
- 《Java从入门到失业》第四章:类和对象(4.3):一个完整的例子带你深入类和对象
4.3一个完整的例子带你深入类和对象 到此为止,我们基本掌握了类和对象的基础知识,并且还学会了String类的基本使用,下面我想用一个实际的小例子,逐步来讨论类和对象的一些其他知识点. 4.3.1需求 ...
- tensorflow实战系列(三)一个完整的例子
#!/usr/bin/env python2# -*- coding: utf-8 -*-"""Created on Wed Jan 18 08:42:55 2017 @ ...
- SuperSocket学习笔记(一)-一个完整的例子
一.什么是SuperSocket 以下是作者的介绍 执行以下命令,获取SuperSocket项目 $ git clone https://github.com/kerryjiang/SuperSock ...
- WCF学习笔记(1)-一个完整的例子
一.开发环境 IDE:VS2013 OS:Win10 IIS:IIS 10 二.开发流程 1.项目结构 2.添加一个WCF程序 3.删除系统自动生成的两个文件IService1.cs和Service1 ...
- 和S5933比较起来,开发PLX9054比较不幸,可能是第一次开发PCI的缘故吧。因为,很多PCI的例子都是对S5933,就连微软出版的《Programming the Microsoft Windows Driver Model》都提供了一个完整的S5933的例子。 在这篇有关DDK的开发论文里。
和S5933比较起来,开发PLX9054比较不幸,可能是第一次开发PCI的缘故吧.因为,很多PCI的例子都是对S5933,就连微软出版的<Programming the Microsoft Wi ...
- 【ABAP系列】SAP 一个完整的SAP的Abap例子(idoc,edi文件的相互转换)
公众号:SAP Technical 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:[ABAP系列]SAP 一个完整的SAP的Aba ...
- 一个完整的 Web 请求到底发生了什么
阅读本文大概需要 7 分钟. 一.从输入一个网址开始 当我们在浏览器输入一个网址,然后按下回车,接下来浏览器显示了页面.网速好的话这之间可能就一秒,但在这一秒内到底发生了什么? 本文主要内容是试图记录 ...
- [转]一个完整的Installshield安装程序实例
@import url("http://files.cnblogs.com/files/go-jzg/vs.css"); --> Installshield安装程序实例—基本 ...
- Python分布式爬虫打造搜索引擎完整版-基于Scrapy、Redis、elasticsearch和django打造一个完整的搜索引擎网站
Python分布式爬虫打造搜索引擎 基于Scrapy.Redis.elasticsearch和django打造一个完整的搜索引擎网站 https://github.com/mtianyan/Artic ...
随机推荐
- Django 后台 无法显示文章标题
我们会发现所有的文章都是叫 **object,这样肯定不好,比如我们要修改,如何知道要修改哪个呢? 我们修改一下 blog 中的models.py # coding:utf-8 from django ...
- hdu 4576(简单概率dp | 矩阵优化)
艰难的一道题,体现出菜菜的我... 首先,先吐槽下. 这题到底出题人是怎么想的,用普通概率dp水过??? 那为什么我概率dp写的稍微烂点就一直tle? 感觉很不公平.大家算法都一致,因为我程序没有那 ...
- poj3243 Clever Y[扩展BSGS]
Clever Y Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 8666 Accepted: 2155 Descript ...
- 【BZOJ3160】万径人踪灭 Manacher+FFT
[BZOJ3160]万径人踪灭 Description Input Output Sample Input Sample Output HINT 题解:自己想出来1A,先撒花~(其实FFT部分挺裸的) ...
- 转载: Flex 布局教程
demo:页面二等分 .flex-box { display: -webkit-flex; /* Safari */ display: flex; flex-direction: row; justi ...
- Oracle 数据库的组成(instance+database)
Oracle服务器是一种对象关系数据库管理系统,它为信息管理提供开放.综合.集成的方法. Oracle服务器中有多种进进程.内存结构和文件: Oracle服务器由一个Oracle实例和一个Oracle ...
- Spring MVC http请求地址映射(三)
Spring MVC框架通过扫描将带有@Controller的类中的@RequestMapping的方法进行映射,然后调用映射的方法处理请求,这个分发过程默认是由DispaterServlet处理的. ...
- XML 解析之 dom4j 解析器
dom4j 的使用需要导入 jar 包, 包括: dom4j-1.6.1 和 jaxen-1.1-beta 步骤: 在项目目录下,"Folder" 创建一个 lib 文件夹 复制 ...
- Java 之反射机制
java 语言的反射机制 - 在运行状态中,对于任意一个类 (class 文件),都能够知道这个类的所有属性和方法; - 能动态获取类中的信息,也可以理解为对类(字节码文件)的解剖 描述字节码文件的类 ...
- Java 集合框架查阅技巧
如何记录每一个容器的结构和所属体系呢? List ArrayList LinkedList Set HashSet TreeSet 其中,后缀名就是该集合所属的体系,前缀名就是该集合的数据结构. 看到 ...