- 浏览: 53475 次
- 性别:
- 来自: 北京
-
最新评论
-
lehehe:
基站定位,使用接口很方便的,这里有免费的接口,你可以试试,ht ...
google API基站定位 -
donkeyji:
yongqi 写道hi,你好,请教一个问题我在安装python ...
python zeromq 介绍 -
yongqi:
hi,你好,请教一个问题我在安装python的zeromq包时 ...
python zeromq 介绍 -
mimicom:
看着晕乎乎的....
python zeromq 介绍 -
raojl:
不错,好像zeromq就在2011年一夜之间火了,特别的blo ...
python zeromq 介绍
1. CSS是一种为结构化文档添加样式的计算机语言
使用场景1:一种样式重复使用。Do not Repeat Yourself.
使用场景2:简化网页设计
如:
<style type="text/css"> p { text-align:center; } p.red { color:red; font-size:24px } p.purple { color:purple; font-size:18px } p.blue { color:blue; font-size:12px } p.left { text-align:left; } </style>
<p class="red">It was the best of times, it was the worst of times,</p> <p class="purple">it was the age of wisdom, it was the age of foolishness,</p> <p class="blue">it was the epoch of belief, it was the epoch of incredulity</p> <p class="blue">it was the season of Light, it was the season of Darkness,</p> <p class="purple">it was the spring of hope, it was the winter of despair,</p> <p class="red">we had everything before us, we had nothing before us,</p> <p class="red">we were all going direct to Heaven, we were all going direct the other way</p> <p class="purple">in short, the period was so far like the present period,</p> <p class="blue">that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only. </p> <p class="left">-- Charles Dickens</p>
做成一个外部链接
CSS为什么叫做层叠样式表,对样式的设定可以是多层的,而究竟采用哪一层采用就近原则。
2. CSS与DIV
内联样式
<body> <h1 style="font-size:12pt;color:blue">A robot may not injure a human being or, through inaction, allow a human being to come to harm. </h1> </body>
嵌入样式
<head> <style type="text/css"> h1 {font-family:宋体;font-size:12pt;color:blue} </style> </head> <body> <h1>A robot must obey orders given it by human beings except where such orders would conflict with the First Law.</h1> </body>
外联样式(推荐)
<link rel="stylesheet" href="h1.css" type="text/css"> </head> <body><h1>A robot must protect its own existence as long as such protection does not conflict with the First or Second Law. <head></h1></body>
h1.css
h1 {font-family:宋体;font-size:12pt;color:blue}
CSS语句格式
选择符{属性:值} 如: p {font-size:16}
html选择符
class选择符,如:
<head> <style type="text/css"> .center {text-align:center;color:blue} </style> </head> <body> <h1 class="center">The Creation of Éa</h1> <pre class="center"> Only in silence the word, only in dark the light, only in dying life: bright the hawk's flight on the empty sky. </pre> </body
ID选择符,如:
<head> <style type="text/css"> #title{text-align:center;color:blue} </style> </head> <body> <p id="title">To the time to life, rather than to life in time </p> </body>
包含选择符,如:
<head> <style type="text/css">b table p{font-size:20;color:red} </style> </head> <body> <table> <tr><td><p>The Childhood Of Humankind Ends</p></td></tr> </table> <p>The Childhood Of Humankind Ends</p> </body>
组合选择符,如:
<style type="text/css"> h1,h2,h3{color:red} </style>
DIV--层布局
传统的网页布局是用表格(table)来做的,整张网页其实就是一个大的嵌套的表格:简陋网页用表格来做布局还是相当方便的,不过当网页内容多起来,表格的嵌套会变的非常复杂。
另外一种常用方法是采用div,也就是层,来进行网页布局。
首先是页面作为最底层,放上一层背景,在背景上建立一个新层,放上logo,header,sidedar,foot,content几个块,在每个块上根据需要继续建立层。
这种方式非常自然,做起来也像搭积木一样流畅。
例子:
1 html
<html> <head> <title>Yeats</title> <style type="text/css" media="screen"> </style> </head> <body> <h1>When You Are Old</h1> <pre> When you are old and grey and full of sleep, And nodding by the fire, take down this book, And slowly read, and dream of the soft look Your eyes had once, and of their shadows deep; How many loved your moments of glad grace, And loved your beauty with love false or true, But one man loved the pilgrim Soul in you, And loved the sorrows of your changing face; And bending down beside the glowing bars, Murmur, a little sadly, how Love fled And paced upon the mountains overhead And hid his face amid a crowd of stars. </pre> <hr> <a href="mailto:renw1990@gmail.com">My Email</a> </body> </html>
2 css
body {font-size:20px;margin:0px;text-align:center} #container {width:100%} #header { width:800px; margin:0 auto; height:100px; background-color:green; } #mainbody { width:800px; height:400px; margin:0 auto; } #sidebar { float:left; width:200px; height:400px; background-color:orange; } #content { float:right; width:600px; height:400px; color:white; background-color:black; } #foot { margin:0 auto; height:100px; width:800px; background-color:yellow; }
3 div
<div id="container"> <div id="header"> <h1>When You Are Old</h1> </div> <div id="mainbody"> <div id="sidebar"> <p><br><br>index</p> <p>download</p> <p>William Yeats</p> <p>Contact Me</p> </div> <div id="content"> <pre> When you are old and grey and full of sleep, And nodding by the fire, take down this book, And slowly read, and dream of the soft look Your eyes had once, and of their shadows deep; How many loved your moments of glad grace, And loved your beauty with love false or true, But one man loved the pilgrim Soul in you, And loved the sorrows of your changing face; And bending down beside the glowing bars, Murmur, a little sadly, how Love fled And paced upon the mountains overhead And hid his face amid a crowd of stars. </pre> </div> </div> <div id="foot"> <hr> <a href="mailto:renw1990@gmail.com">My Email</a> </div> </div>
ps:
http://www.csszengarden.com/tr/chinese/
发表评论
-
rails model best practices
2011-05-11 09:50 0name_scope :active, :conditions ... -
Ruby标准库
2011-05-10 15:02 0ruby标准库一览 文本 base64 yaml ... -
rails3测试理解
2011-04-30 10:23 1382Why RSpec? Clear, concise and ... -
linux系统备注
2011-04-29 10:49 1213bin "Essential binaries&qu ... -
vim备注
2011-04-29 10:03 0vim -
ruby
2011-04-28 10:33 1111Ruby编程基础知识概括: 1. ruby is an ob ... -
Javascript简明手册
2011-04-25 10:07 0Javascript和C++,java,Python一样是一种 ... -
KVM
2011-04-24 09:36 01 kvm安装 前期准备 ... -
Jquery
2011-04-22 16:10 01. jQuery解决了什么样的问题? -
Mysql相关知识
2011-04-22 14:30 12071. Mysql常规使用 安装 server: sudo ... -
PF_RING
2011-04-14 14:38 20901. PF_RING 安装 A clean insta ... -
thrift实践
2011-04-08 11:52 15191 安装thrift 通过svn获得源码 svn co h ... -
Cmake + protobuf-c + python自定义协议通信
2011-03-29 11:25 4859Cmake是一套跨平台的工程构建工具 sudo apt ... -
清除历史记录
2011-03-18 10:40 01. 选型 [语言] C++ [平台] wind ... -
pyzmq 使用
2011-03-16 16:02 51431. The Socket API Creating an ... -
nginx X-Accel-Redirect实现文件下载权限控制及rails devise实现
2011-03-14 13:52 3368问题1:Nginx的X-Accel-Redirect? 答: ... -
python zeromq 介绍
2011-03-10 10:38 11198简介: ZeroMQ并不是一个对socket的封装,不能用它 ... -
fabric自动部署
2011-03-09 14:00 2644Fabric commands run - run a ... -
nagios的工作场景及使用说明
2011-03-08 10:15 2083问题1:nagios配置文件说明? 答: comman ... -
在ubuntu下安装nagios监控平台
2011-03-07 16:56 1622问题1:Nagios是什么? 答:是一个监视系统运行状态和网 ...
相关推荐
qtz40塔式起重机总体及塔身有限元分析法设计().zip
Elasticsearch是一个基于Lucene的搜索服务器
资源内项目源码是来自个人的毕业设计,代码都测试ok,包含源码、数据集、可视化页面和部署说明,可产生核心指标曲线图、混淆矩阵、F1分数曲线、精确率-召回率曲线、验证集预测结果、标签分布图。都是运行成功后才上传资源,毕设答辩评审绝对信服的保底85分以上,放心下载使用,拿来就能用。包含源码、数据集、可视化页面和部署说明一站式服务,拿来就能用的绝对好资源!!! 项目备注 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、大作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.txt文件,仅供学习参考, 切勿用于商业用途。
美国纽约HVAC(暖通空调)数据示例,谷歌地图数据包括:时间戳、名称、类别、地址、描述、开放网站、电话号码、开放时间、更新开放时间、评论计数、评级、主图像、评论、url、纬度、经度、地点id、国家等。 在地理位置服务(LBS)中,谷歌地图数据采集尤其受到关注,因为它提供了关于各种商业实体的详尽信息,这对于消费者和企业都有极大的价值。本篇文章将详细介绍美国纽约地区的HVAC(暖通空调)系统相关数据示例,此示例数据是通过谷歌地图抓取得到的,展示了此技术在商业和消费者领域的应用潜力。 无需外网,无需任何软件抓取谷歌地图数据:wmhuoke.com
2023-04-06-项目笔记-第四百五十五阶段-课前小分享_小分享1.坚持提交gitee 小分享2.作业中提交代码 小分享3.写代码注意代码风格 4.3.1变量的使用 4.4变量的作用域与生命周期 4.4.1局部变量的作用域 4.4.2全局变量的作用域 4.4.2.1全局变量的作用域_1 4.4.2.453局变量的作用域_453- 2025-04-01
1_实验三 扰码、卷积编码及交织.ppt
北京交通大学901软件工程导论必备知识点.pdf
内容概要:本文档总结了 MyBatis 的常见面试题,涵盖了 MyBatis 的基本概念、优缺点、适用场合、SQL 语句编写技巧、分页机制、主键生成、参数传递方式、动态 SQL、缓存机制、关联查询及接口绑定等内容。通过对这些问题的解答,帮助开发者深入理解 MyBatis 的工作原理及其在实际项目中的应用。文档不仅介绍了 MyBatis 的核心功能,还详细解释了其在不同场景下的具体实现方法,如通过 XML 或注解配置 SQL 语句、处理复杂查询、优化性能等。 适合人群:具备一定 Java 开发经验,尤其是对 MyBatis 有初步了解的研发人员,以及希望深入了解 MyBatis 框架原理和最佳实践的开发人员。 使用场景及目标:①理解 MyBatis 的核心概念和工作原理,如 SQL 映射、参数传递、结果映射等;②掌握 MyBatis 在实际项目中的应用技巧,包括 SQL 编写、分页、主键生成、关联查询等;③学习如何通过 XML 和注解配置 SQL 语句,优化 MyBatis 性能,解决实际开发中的问题。 其他说明:文档内容详尽,涵盖面广,适合用于面试准备和技术学习。建议读者在学习过程中结合实际项目进行练习,以更好地掌握 MyBatis 的使用方法和技巧。此外,文档还提供了丰富的示例代码和配置细节,帮助读者加深理解和应用。
《基于YOLOv8的智能电网设备锈蚀评估系统》(包含源码、可视化界面、完整数据集、部署教程)简单部署即可运行。功能完善、操作简单,适合毕设或课程设计
插头模具 CAD图纸.zip
资源内项目源码是来自个人的毕业设计,代码都测试ok,包含源码、数据集、可视化页面和部署说明,可产生核心指标曲线图、混淆矩阵、F1分数曲线、精确率-召回率曲线、验证集预测结果、标签分布图。都是运行成功后才上传资源,毕设答辩评审绝对信服的保底85分以上,放心下载使用,拿来就能用。包含源码、数据集、可视化页面和部署说明一站式服务,拿来就能用的绝对好资源!!! 项目备注 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、大作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.txt文件,仅供学习参考, 切勿用于商业用途。
《基于YOLOv8的智慧农业水肥一体化控制系统》(包含源码、可视化界面、完整数据集、部署教程)简单部署即可运行。功能完善、操作简单,适合毕设或课程设计
python爬虫;智能切换策略,反爬检测机制
台区终端电科院送检文档
e235d-main.zip
丁祖昱:疫情对中国房地产市场影响分析及未来展望
MCP快速入门实战,详细的实战教程
YD5141SYZ后压缩式垃圾车的上装箱体设计.zip
IMG_20250401_195352.jpg
DeepSeek系列专题 DeepSeek技术溯源及前沿探索.pdf