赢在职场-WEB全栈开发-1-6padding
来源:互联网 发布:photoshopcs6 for mac 编辑:程序博客网 时间:2024/05/17 12:22
<!doctype html>
<html>
<head>
<title>抬头</title>
<meta charset="utf-8">
<style>
.InternalStyle1
{
width:300px;
height:300px;
border: purple 30px solid;
background:green center bottom no-repeat url("dragon.png");
padding-top: 100px;//盒子中的内容距离顶部30px,盒子也变大了,称为内边距;
//padding:top right bottom left;//具有顺序的复合属性。上右下左,按顺时针方向。
//padding:20px;//上右下左全是20px
}
</style>
<link href = "main.css" rel = "stylesheet">
</head>
<body>
<!属性:属性值(属性单位)>
<div style = "width:300px;height:100px;background:red">inline style1 行内样式1</div>
<div class = "InternalStyle1">Internal Style1 内部样式1</div>
<div class = "ExternalStyle1">External Style1 外部样式1</div>
</body>
</html>
- 赢在职场-WEB全栈开发-1-6padding
- 赢在职场-WEB全栈开发-1-1初识前段
- 赢在职场-WEB全栈开发-1-2浅析
- 赢在职场-WEB全栈开发-1-3CSS的位置
- 赢在职场-WEB全栈开发-1-4background讲解
- 赢在职场-WEB全栈开发-1-5border
- 赢在职场-WEB全栈开发-1-7margin
- 赢在职场-WEB全栈开发-1-8盒子模型
- 赢在职场-WEB全栈开发-1-9 文本样式概览
- 赢在职场-WEB全栈开发-1-1初识前段、1-2浅析、1-3CSS的位置
- 赢在职场(转)
- mysql 赢在职场 学习
- 人在职场
- 人在职场2
- 人在职场,经验之谈
- 生活在职场
- 如何在职场中脱颖而出?
- 学会在职场中成长
- luci, show dynamic infomation on web
- 欢迎使用CSDN-markdown编辑器
- Android代码规范
- 赢在职场-WEB全栈开发-1-5border
- 常用数据库的JDBC驱动程序写法
- 赢在职场-WEB全栈开发-1-6padding
- NYOJ 喷水装置(一) (贪心)
- 图像处理中常用的彩色模型
- 用java编程输出九九乘法表
- 赢在职场-WEB全栈开发-1-7margin
- 茫无头绪的瞎侃
- swift数据类型
- 第10、11周项目5:摩托车继承自行车和机动车
- Java多线程