当前位置: 首页 > wzjs >正文

建设网站怎么添加端口映射专业做网站建

建设网站怎么添加端口映射,专业做网站建,虚拟主机云主机,国际贸易网址目录 1. 盒子模型 1.1 盒子模型布局 1.2 盒子模型组成 1.3 边框 1.4 表格细线边框 1.5 边框会影响盒子实际大小 1.6 内边距 1.7 外边距 1.8 外边距合并 1.9 清除内外边距 2. PS基本操作 3. 综合案例 3.1 案例1 3.2 案例2-快报模块 4. 圆角边框 5. 盒子阴影 6…

目录

1. 盒子模型

1.1 盒子模型布局

1.2 盒子模型组成

1.3 边框

1.4  表格细线边框

1.5 边框会影响盒子实际大小

1.6 内边距

1.7 外边距

1.8 外边距合并

1.9 清除内外边距

2. PS基本操作

3. 综合案例

3.1 案例1

3.2 案例2-快报模块

4. 圆角边框

5. 盒子阴影

6. 文字阴影(了解)


1. 盒子模型

1.1 盒子模型布局

1.2 盒子模型组成

1.3 边框

    <style>div {width: 300px;height: 200px;/* 边框粗细 一般单位用px */border-width: 5px;/* 边框的样式 solid 实线边框  dashed 虚线边框  dotted 点线边框 */border-style: dotted;/* 边框的颜色 */border-color: pink;}</style>

具有重叠性,所以一般先写大范围再写小范围

/* 得到的盒子为:上边框粗细为2像素、实线、红色,其余边框粗细为5像素、实线、蓝色 */

border: 5px solid blue;

border-top: 2px solid red;

/* 得到的盒子为:边框粗细均为5像素、实线、蓝色 */

border-top: 2px solid red;

border: 5px solid blue;

1.4  表格细线边框

    <style>table {width: 500px;height: 249px;}th {height: 35px;}table,td,th {border: 1px solid red;/* 合并相邻的边框 */border-collapse: collapse;font-size: 14px;text-align: center;}</style><body><table align="center" cellspacing="0"><thead><tr><th>排行</th><th>关键词</th></tr></thead><tbody><tr><td>1</td><td>hhh</td></tr></tbody></table>
</body>

1.5 边框会影响盒子实际大小

1.6 内边距

 padding-left: 5px;

 padding-top: 5px;

 padding-bottom: 5px;

 padding-right: 5px;

 复合写法:

如果盒子本身没有指定width/height属性,则此时padding不会撑开盒子大小。

盒子内字数不一样多,让padding撑开盒子——新浪导航案例。

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>div {height: 41px;background-color: #fcfcfc;border-top: 3px solid #ff8500;border-bottom: 1px solid #edeef0;/* 文字居中对齐 */line-height: 41px;}div a {font-size: 12px;color: #4c4c4c;text-decoration: none;display: inline-block;padding: 0 20px;}div a:hover {background-color: #eee;color: #ff8500;}</style>
</head><body><div><a href="#">设为首页</a><a href="#">手机新浪网</a><a href="#">移动客户端</a><a href="#">博客</a><a href="#">微博</a><a href="#">关注我</a></div></body></html>

1.7 外边距

1.8 外边距合并

相邻块元素垂直外边距的合并

嵌套块元素垂直外边距的塌陷

1.9 清除内外边距

2. PS基本操作

3. 综合案例

3.1 案例1

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>* {/* 外边距 */margin: 0;/* 内边距 */padding: 0;}body {background-color: #f5f5f5;}.box {width: 298px;height: 415px;background-color: #fff;margin: 100px auto;}.box img {/* 图片宽度和父亲一样宽 */width: 100%;}.review {height: 70px;font-size: 14px;/* 这个段落没有width属性 所以padding不会撑开盒子的宽度 */padding: 0 28px;margin-top: 30px;}.appraise {font-size: 12px;color: #b0b0b0;margin-top: 20px;padding: 0 28px;}.info {font-size: 14px;margin-top: 15px;padding: 0 28px;}.info h4 {display: inline-block;font-weight: 400;}.info span {color: #ff6700;}.info em {font-style: normal;color: #ebe4e0;margin: 0 6px 0 15px;}</style>
</head><body><div class="box"><img src="../img1.jpg"><p class="review">快递牛,整体不错蓝牙可以秒连。红米给力</p><div class="appraise">来自于111用户的评价</div><div class="info"><h4>Redmi AirDots真无线蓝…</h4><em>|</em><span>99.9元</span></div></div>
</body></html>

总结

3.2 案例2-快报模块

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>* {margin: 0;padding: 0;}.box {width: 248px;height: 163px;border: 1px solid #ccc;margin: 100px auto;}.box h3 {height: 32px;border-bottom: 1px dotted #ccc;font-size: 14px;font-weight: 400;line-height: 32px;padding-left: 15px;}li {/* 去掉li前面的小圆点 */list-style: none;}.box ul li a {font-size: 12px;color: #666;text-decoration: none;}.box ul li a:hover {text-decoration: underline;}.box ul li {height: 23px;line-height: 23px;padding-left: 20px;}.box ul {margin-top: 7px;}</style>
</head><body><div class="box"><h3>品优购快报</h3><ul><li><a href="#">【特惠】爆款耳机5折秒!</a></li><li><a href="#">【特惠】母亲节,健康好礼!</a></li><li><a href="#">【特惠】爆款耳机5折秒!</a></li><li><a href="#">【特惠】9.9元洗100张照片!</a></li><li><a href="#">【特惠】长虹智能空调立省1000</a></li></ul></div>
</body></html>

4. 圆角边框

    <style>/* 圆形的做法 */.yuanxing {width: 200px;height: 200px;background-color: pink;border-radius: 50%;}/* 圆角矩形的做法 */.yuanjiaojuxing {width: 600px;height: 200px;background-color: pink;border-radius: 100px;}/* 可以设置不同的圆角 */.radius {width: 200px;height: 200px;background-color: pink;border-radius: 10px 20px 30px 40px;}</style>

5. 盒子阴影

6. 文字阴影(了解)


文章转载自:

http://7LE52bX2.jgcyn.cn
http://1rWqp9Xy.jgcyn.cn
http://Htug2ZUQ.jgcyn.cn
http://U9FALyW8.jgcyn.cn
http://uqgfXL1c.jgcyn.cn
http://9hEgP1PT.jgcyn.cn
http://TiUYw3nJ.jgcyn.cn
http://f4fV4zB2.jgcyn.cn
http://trqk9VEG.jgcyn.cn
http://6OHuVBFe.jgcyn.cn
http://xHWZoOeJ.jgcyn.cn
http://AGpNHELs.jgcyn.cn
http://NgzGywWr.jgcyn.cn
http://xrjoWdut.jgcyn.cn
http://Diw4hhcN.jgcyn.cn
http://I3uq5qgt.jgcyn.cn
http://Lj2ASJlQ.jgcyn.cn
http://fRTRMFZX.jgcyn.cn
http://ar8kXHN9.jgcyn.cn
http://heorlOjF.jgcyn.cn
http://HF8Rl9TX.jgcyn.cn
http://S742mgOL.jgcyn.cn
http://kdcrIdkh.jgcyn.cn
http://3C7DQAUk.jgcyn.cn
http://U1IMX3xz.jgcyn.cn
http://cF8H961j.jgcyn.cn
http://Dg6XsO79.jgcyn.cn
http://01OebHHY.jgcyn.cn
http://X6SXAijO.jgcyn.cn
http://K7ebndS5.jgcyn.cn
http://www.dtcms.com/wzjs/695761.html

相关文章:

  • 网站开发工程师符号代码备案时的网站建设方案书
  • 网站数据库多大合适网站专业性免费评价工具
  • 设计师培训学费西安seo代理计费
  • 网站推广什么意思wordpress自定义字段分类
  • 设计师接单的网站ui做网站流程
  • 济宁君天建设公司网站潍坊市建设工程质量安全监督站网站
  • 石家庄制作网站软件excel可以制作网页吗
  • 石家庄网站建设策划方案无锡企业建站模板
  • 请别人做网站大概要多少钱选thinkphp还是wordpress
  • 廊坊建设质量监督局网站中国建设银行企业门户网站
  • 个人网站备案资料深圳今天新增确诊名单
  • 响应式网站一般怎么设计网站10月份可以做哪些有意思的专题
  • 做网站的最佳方法黄石城乡建设网站
  • 网站备案要钱吗wordpress图片缓冲
  • 开发一个网站多少钱雏光 网络推广 网站建设
  • 海南专业网站建设百度竞价排名技巧
  • 建设网站图片网站建设zgkr
  • 用dw建设个人网站视频wordpress 访客文章
  • 湖北建设招标网 官方网站旅游网站建设设计公司
  • 滨州哪里有做网站的郴州网络推广公司在哪里
  • 小学校园门户网站建设方案兄弟们拿走不谢
  • 白银市做网站网站建设 图标
  • 优化网站排名公司网红营销模式分析
  • 建站平台软件怎么做建设网站
  • 网站建设技术服务的方式是什么建站平台入口
  • 如何提升网站转化率营销策划公司收费明细
  • 网站制作开发公司网站 微信
  • 电子产品网站建设策划方案胶州企业网站设计
  • 做视频的软件模板下载网站有哪些内容北京建设主管部门官方网站
  • 徐州网站优化价格菏泽网站网站建设