Html11.09CSS层叠样式表内容整理
2024-10-15 04:29:33
<!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=utf-8" />
<title>无标题文档</title> <style type="text/css">
.myclass {
font-size: 24px;
color: #F00;
text-decoration: none;
}
a {
color: blue;
font-family: "Microsoft YaHei UI";
font-size: 36px;
font-weight: bold;
text-decoration: none;
}
#myID {
font-size: 10px;
color: #909;
background-color: #0F3;
}
h1 {color:green; text-align:center; font-family:'MS Serif', 'New York', serif}
.divclass {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 16px;
color: #339;
text-decoration: none;
font-style: italic;
background-color: #666;
line-height: 30px;
font-weight: bolder;
text-transform: capitalize;
font-variant: small-caps;
background-attachment: scroll;
text-align: center;
vertical-align: top;
height: 100px;
width: 400px;
}
body{
;
background-attachment: fixed;
}
</style>
<link href="mycss.css" rel="stylesheet" type="text/css" />
</head> <body> <p class="myclass">
我在制作网页
</p> <a href="#" target="_blank" class="myclass">这是什么东西</a>
<br>
<a href="#">又是一个链接?</a> <p id="myID">文字0.0</p> <p class="myclass1">乱套了</p> <h1 style="font-size:20px;">伊利&桥立 </h1>
<h1>圣.路易斯和天龙</h1> <div class="divclass">
div+CSS演示
</div> </body>
</html>
最新文章
- Block formatting context(块级格式化上下文)
- JS教程:获取当前地址栏URL
- cocos2d-x之Box2d初试
- ASP.NET MVC 3 loginUrl自动变成Account/Login,并且发生404错误的解决方法
- notpad++安装python插件
- linux驱动模型<;输入子系统>;
- Three-Color Flag
- [Leetcode][Python]37: Sudoku Solver
- [Cocos2d-x]创建项目
- 《TCP/IP作品详细解释2:实现》笔记--Radix树路由表
- 《JS权威指南学习总结--7.8 数组方法》
- hashlib模块,shutil,模块 ,,xml 文件解析,configparser,模块,类,什么是类
- 解决IE11安装时需要“获取更新”(IE11离线安装)
- php代码审计——DVWA
- 洛谷P2014 选课
- 遇到的eclipse启动报错问题解决
- “Linux内核分析”第五周报告
- VC工程从Win32环境往Win64环境迁移的经验总结
- Linux上安装Hadoop集群(CentOS7+hadoop-2.8.0)
- 折腾VIM的C++缩进