-
2021-08-04 07:44:54
样式一:
body {
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: "Times New Roman", Times, serif;
font-size: 14px;
color: #000000;
background: #f2e7ca url(images/templatemo_body.jpg) top center no-repeat;
}
样式二:
body {
background:#2f373a;
font-family:Arial,Helvetica,sans-serif;font-size:100%;
line-height:1em;color:#4e4e4e;
min-width:920px;
border-top:10px solid #0c0e0e
}
样式三:
body {
font-family:Arial,Helvetica,sans-serif;
font-size:1em;
vertical-align:middle;
font-weight:normal
}
样式四:
body
{
margin:0px;
padding:0px;
background-color:#E7EAEB;
font-family:"微软雅黑","黑体","宋体";
font-size:12px;
height:36px;
}
样式五:
body
{
font: .8em Arial, Tahoma, Verdana;
background: #fff url(../images/bg.gif) repeat-x;
color: #777;
}
样式六:
body
{
width:auto; margin-top:12px;
float:right; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:11px;
color:#999999;
line-height:25px;
letter-spacing:1px
}
样式七:
body
{
width:auto;
margin-left:1px;
float:left;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
color:#5f5f5f;
line-height:35px;
text-transform:uppercase
}
样式八:
body {
background: #e1e5e8;
font-family: "Georgia", Tahoma, Sans-Serif;
font-size: 12px;line-height: 18px;
color: #888;
}
样式九:
body
{
width:130px; height:20px;
background:url(images/servicesbg.gif) 0 0 repeat-x #68EF00;
color:#317400;
font:18px/14px Georgia, "Times New Roman", Times, serif;
margin:34px 0 0 37px;
}
样式十:
body
{
display:block;
width:94px;
height:20px;
background: url(images/serviceslink1bg.gif) 0 72% no-repeat #6DFD00;
color:#01699F;
font:13px/20px Georgia, "Times New Roman", Times, serif; text-decoration:none;
}
样式十一:
body {
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;color: #33322e;background: #39443D url(images/templatemo_body_bg.jpg) repeat-x;
/* background: #47443c url(images/templatemo_body_bg_2.jpg) repeat-x; */
}
样式十二:
body {margin: 0;padding: 0;line-height: 1.5em;font-family: Tahoma, Geneva, sans-serif;font-size: 12px;color: #6f6f6f;
background: #2ac5c0 url(images/templatemo_body_top.jpg) repeat-x;
}
样式十三:
body {
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Verdana, Geneva, sans-serif;font-size: 11px;
color: #ffffff;background: #005b7f;
}
样式十四:
body {
margin: 0;
padding: 0;
line-height: 1.7em;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;color: #333333;
background: #000000 url(images/templatemo_main_bg.jpg) repeat-y center;
}
样式十五:
body {
margin: 0;
padding: 0;
line-height: 1.7em;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;color: #707b84;
background: #3e464d;
}
样式十六:
body {
margin: 0;
padding: 0;
line-height: 1.7em;
letter-spacing: 1px;
font-family: Georgia, "Times New Roman", Times, serif;font-size: 12px;
color: #333;
background: #e1d1d6 url(images/templatemo_body.png) repeat-x top;
}
样式十七:
body {
margin: 0;
padding: 0;
line-height: 1.7em;
letter-spacing: 1px;
font-family: Georgia, "Times New Roman", Times, serif;font-size: 12px;
color: #333;
background: #e1d1d6 url(images/templatemo_body.png) repeat-x top;
}
样式十八:
body
{
background:url(images/bg.gif) repeat #000000;
padding:0; font-family:arial, sans-serif; font-size:12px;
margin:0px auto auto auto;
color:#36322b;
}
样式十九:
body
{
margin:0px;
padding:0px;
background:url(images/mainbg.gif) 0 0 repeat-x #F6F4E4;
color:#6B6854;
font:14px/18px "Trebuchet MS", Arial, Helvetica, sans-serif;
}
样式二十:
body
{
font-family:Georgia;
font-family:Arial;
}
更多相关内容 -
比较好看的css 自定义样式(标题 h1 h2 h3)
2020-11-21 17:55:46博客园中常用的样式 /*标题h1 h2 h3样式*/ #content { color: black; font: 0.875em/1.5em"微软雅黑", "PTSans", "Arial", sans-serif; font-size: 16px; } #content h1 { background: #2B6695; border-radius... -
9款漂亮的纯css字体样式
2021-02-04 23:20:16样式: 代码: <html> <head> </head> <style> body{ text-align: center; } .hcqFont{position:relative;letter-spacing:.07em;font-size:3em;font-weight:normal;margin:0 auto} ....样式:
代码:<html> <head> </head> <style> body{ text-align: center; } .hcqFont{position:relative;letter-spacing:.07em;font-size:3em;font-weight:normal;margin:0 auto} .hcqFont:before,.hcqFont:after{position:absolute;top:0;left:0;right:0} .hcqStyle1{color:hsl(184,80%,25%);text-shadow:0 0 1px currentColor,/*highlight*/-1px -1px 1px hsl(184,80%,50%),0 -1px 1px hsl(184,80%,55%),1px -1px 1px hsl(184,80%,50%),/*light shadow*/1px 1px 1px hsl(184,80%,10%),0 1px 1px hsl(184,80%,10%),-1px 1px 1px hsl(184,80%,10%),/*outline*/-2px -2px 1px hsl(184,80%,15%),-1px -2px 1px hsl(184,80%,15%),0 -2px 1px hsl(184,80%,15%),1px -2px 1px hsl(184,80%,15%),2px -2px 1px hsl(184,80%,15%),2px -1px 1px hsl(184,80%,15%),2px 0 1px hsl(184,80%,15%),2px 1px 1px hsl(184,80%,15%),-2px 0 1px hsl(184,80%,15%),-2px -1px 1px hsl(184,80%,15%),-2px 1px 1px hsl(184,80%,15%),/*dark shadow*/2px 2px 2px hsl(184,80%,5%),1px 2px 2px hsl(184,80%,5%),0 2px 2px hsl(184,80%,5%),-1px 2px 2px hsl(184,80%,5%),-2px 2px 2px hsl(184,80%,5%)} .hcqStyle2{display:inline-block;font-weight:bold;color:#def;text-shadow:0 0 1px currentColor,-1px -1px 1px #000,0 -1px 1px #000,1px -1px 1px #000,1px 0 1px #000,1px 1px 1px #000,0 1px 1px #000,-1px 1px 1px #000,-1px 0 1px #000;-webkit-filter:url(#diff1);filter:url(#diff1);/*background:#def;padding:0 .2em*/} .hcqStyle3{background: #EEE url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAHklEQVQImWNkYGBgYGD4//8/A5wF5SBYyAr+//8PAPOCFO0Q2zq7AAAAAElFTkSuQmCC) repeat;text-shadow: 5px -5px black, 4px -4px white;font-weight: bold;-webkit-text-fill-color: transparent;-webkit-background-clip: text} .hcqStyle4{color: transparent;-webkit-text-stroke: 1px red;letter-spacing: 0.04em;} .hcqStyle5{color: transparent;background-color : blue;text-shadow : rgba(255,255,255,0.5) 0 5px 6px, rgba(255,255,255,0.2) 1px 3px 3px;-webkit-background-clip : text;} .hcqStyle6{color: gold;letter-spacing: 0;text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135} .hcqStyle7{font-family:cursive;text-shadow:6px 2px 2px #333;color:deeppink} .text-reflect-base{color: palegreen;-webkit-box-reflect:below 10px;} .text{ width: 300px; height: 200px; position: absolute; left: 50%; margin-left: -150px; background-image: -webkit-linear-gradient(left,blue,#66ffff 10%,#cc00ff 20%,#CC00CC 30%, #CCCCFF 40%, #00FFFF 50%,#CCCCFF 60%,#CC00CC 70%,#CC00FF 80%,#66FFFF 90%,blue 100%); -webkit-text-fill-color: transparent; -webkit-background-clip: text; -webkit-background-size: 200% 100%; -webkit-animation: masked-animation 4s linear infinite; font-size: 35px; } @keyframes masked-animation { 0% { background-position: 0 0; } 100% { background-position: -100% 0; } } </style> <body> <h1 class='hcqFont hcqStyle1'>hcqFont hcqStyle1</h1> <h1 class='hcqFont hcqStyle2'>hcqFont hcqStyle2</h1> <h1 class="hcqStyle3">hcqStyle3</h1> <h1 class="hcqStyle4">hcqStyle4</h1> <h1 class="hcqStyle5">hcqStyle5</h1> <h1 class="hcqStyle6">hcqStyle6</h1> <h1 class="hcqStyle7">hcqStyle7</h1> <h1 class='text-reflect-base'>text-reflect-base</h1> <div class="text"><p>text</p></div> </body> </html>
-
7款漂亮的纯css字体样式
2018-01-03 15:58:46/* 将字体设置成透明色 */ -webkit-background-clip : text ; /* 裁剪背景图,使文字作为裁剪区域向外裁剪 */ -webkit-background-size : 200 % 100 % ; -webkit-animation : masked-animation 4 s ...
简单粗暴,直接上马:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <h1 class="vintage1">美丽的中国语</h1> <h1 class="vintage2">美丽的中国语</h1> <h1 class="vintage3">美丽的中国语</h1> <h1 class="vintage4">美丽的中国语</h1> <h1 class="vintage5">美丽的中国语</h1> <h1 class='text-reflect-base'>美丽的中国语</h1> <div class="text"> <p>美丽的中国语</p> </div> <style> body{ text-align: center; } .vintage1{ background: #EEE url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAHklEQVQImWNkYGBgYGD4//8/A5wF5SBYyAr+//8PAPOCFO0Q2zq7AAAAAElFTkSuQmCC) repeat; text-shadow: 5px -5px black, 4px -4px white; font-weight: bold; -webkit-text-fill-color: transparent; -webkit-background-clip: text } .vintage2{ color: transparent; -webkit-text-stroke: 1px red; letter-spacing: 0.04em;} .vintage3 { color: transparent; background-color : blue; text-shadow : rgba(255,255,255,0.5) 0 5px 6px, rgba(255,255,255,0.2) 1px 3px 3px; -webkit-background-clip : text; } .vintage4{ color: gold; letter-spacing: 0; text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135 } .vintage5{ font-family:cursive;text-shadow:6px 2px 2px #333;color:deeppink } .text-reflect-base{ color: palegreen; -webkit-box-reflect:below 10px; } .text{ width: 300px; height: 200px; position: absolute; left: 50%; margin-left: -150px; background-image: -webkit-linear-gradient(left,blue,#66ffff 10%,#cc00ff 20%,#CC00CC 30%, #CCCCFF 40%, #00FFFF 50%,#CCCCFF 60%,#CC00CC 70%,#CC00FF 80%,#66FFFF 90%,blue 100%); -webkit-text-fill-color: transparent;/* 将字体设置成透明色 */ -webkit-background-clip: text;/* 裁剪背景图,使文字作为裁剪区域向外裁剪 */ -webkit-background-size: 200% 100%; -webkit-animation: masked-animation 4s linear infinite; font-size: 35px; } @keyframes masked-animation { 0% { background-position: 0 0; } 100% { background-position: -100% 0; } } </style> </body> </html>
没有什么难的,都是css和html,看见喜欢的就直接用咯!
-
【html+css】css字体文本样式
2022-02-27 16:47:53css字体文本样式 1.字体 /* 1.默认字号16 */ font-size: 30px; /* 2.加粗 */ font-weight: 700; /* 3.斜体 */ font-style: italic; /* 4.字体 */ /* 多个即为优先级 */ font-family: 微软雅黑,宋体,sans-...css字体文本样式
1.字体
/* 1.默认字号16 */ font-size: 30px; /* 2.加粗 */ font-weight: 700; /* 3.斜体 */ font-style: italic; /* 4.字体 */ /* 多个即为优先级 */ font-family: 微软雅黑,宋体,sans-serif,serif,monospace; /* (1)无衬线字体:微软雅黑[sans-serif] (2)衬线字体:宋体[serif] (3)等宽字体 [monospace]*/ /* 层叠性即为覆盖性 */ color: red; color: aquamarine; /* 一个属性跟多个值,是复合属性 */ /* font: style weight size family */ font: italic 700 66px 宋体; /* 可省略前两个【变为默认】 */ font: 66px 宋体;
2.文本
/* 1. 文本缩进 */ text-indent: 50px; /* 缩进两格【一个格是1em】 */ text-indent: 2em; /* 2. 水平对齐方式 【默认左】*/ text-align: right; text-align: center; body { /* 图片居中用body */ text-align: center; } /* 3. 文本修饰 */ /* 下划线 */ text-decoration:underline; /* 删除线 */ text-decoration: line-through; /* 上划线 */ text-decoration: overline; /* 无装饰 */ text-decoration: none;
行高
谷歌调试: fn+f12
/* line-height: 50px; */ /* 间距是字号的1.5倍 */ line-height: 1.5; /* font: style weight size/line-height family */ font: 50px/2 微软雅黑,宋体,sans-serif,serif,monospace;
标签居中
div { width: 300px; height: 300px; background-color: pink; margin: 0 auto; }
-
CSS——CSS常用的字体样式
2020-11-08 19:54:56CSS——字体样式 常用: font-family:字体 font-size:大小 font-weight:粗细 color:颜色 字体样式测试 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title... -
css字体样式属性有哪些?
2021-07-04 08:07:39css字体样式属性有:1、font-size:字号大小。2、font-family:规定元素的字体系列。3、font-weight:字体粗细。4、font-style:字体风格。5、font:综合设置字体样式。.css字体属性说明:1、font-size:字号大小font... -
CSS字体样式的使用
2020-12-23 14:25:37字体样式包括字体类型、大小、颜色基本效果,另外还包括一些特殊的样式,如字体粗细、下划线、斜体、大小写样式等。 一、定义字体类型 font-family 属性用于设置字体。网页中常用的字体有宋体、微软雅黑、黑体等。 ... -
纯Css比较好看的中英文字体样式(持续整理版)
2019-08-15 17:03:38刚好公司要用到,需要纯css的,不用任何插件就可以显示很不错的字体 样式一: <style type="text/css"> .tb-js-yf-style{font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;} </style&... -
css 字体样式设置大全
2019-11-30 12:04:39字体属性:(font) 大小 {font-size: x-large;}(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD 样式 {font-style: oblique;}(偏斜体) italic;(斜体) normal;(正常) 行高 {line-height: ... -
5种简单实用的css列表样式实例
2021-01-31 06:53:31第一个例子的样式看起平淡无奇,不过喜欢简约风格的人也许会感兴趣,这类似于印刷字体风格,简结的同时也不失灵动的特点(当鼠标滑上去的时候)。注:个人喜欢这里的第二个图文混排的例子,但是发现老外更喜欢第一个... -
CSS 字体样式
2020-09-11 09:38:33本节我们来讲字体样式,之前我们学习 HTML 的时候学过一些用于字体加粗、倾斜的标签,但是使用标签来实现的效果肯定没有我们通过 CSS 中的样式来的方便。 接下来我们会给大家介绍下面这几个属性的使用: 属性 ... -
CSS系列之字体相关的样式
2021-12-28 22:59:161、font-size 字体大小 ①、xx-small,x-small,small,medium,large,x-large,xx-large 绝对大小关键字定义相对于用户的默认字体大小(medium) ②、larger,smaller 比父元素的字体大或小,使用与上面的关键字的... -
手机端应用的CSS字体样式规范
2019-06-26 11:24:38本人主要是前后端开发,设计不是很在行,在没有设计师的情况下,调字体样式真的很苦恼。这里整理一下自己通用的字体大小和颜色,方便后续直接使用。 这里是借鉴了微信小程序的视觉规范,主要是用于手机端H5应用、像... -
CSS3-文本样式、字体样式
2022-02-07 22:17:23CSS3-文本样式、字体样式 -
CSS样式代码大全
2014-03-06 18:38:53CSS 样式代码 集合大部分html属性 一目了然 -
七款好看文字样式纯css
2021-08-04 04:17:30/* 将字体设置成透明色 */ -webkit-background-clip: text;/* 裁剪背景图,使文字作为裁剪区域向外裁剪 */ -webkit-background-size: 200% 100%; -webkit-animation: masked-animation 4s linear infinite; font-... -
纯css3艺术文字样式效果代码
2019-11-04 23:30:47纯css3艺术文字样式效果代码 纯css3艺术文字样式效果代码 -
CSS字体样式与样式效果
2017-10-30 17:03:47CSS字体样式通过CSS样式表,可以自定义字体。下载想要的字体库,然后在工程里创建一个存放字体库文件的目录,把下载好的字体库文件存放进去,之后就可以引用这目录里面的字体库了,使用@font-face来自定义字体库,... -
css font-family css 字体 css 字体样式
2019-03-22 15:25:05好看的字体样式 好看的字体样式大全 参考地址: http://qq1368391900.gitee.io/less/app-family/family.html 注:手机端也可以打开上面的链接 下面是截图,所有的 font-family 支持搜索,手机端 移动端 字体... -
一.css字体样式
2022-04-12 17:04:30*CSS属性书写顺序(重点) 建议遵循以下顺序: 1.布局定位属性: display / position / float / clear / visibility / overflow (建议 display 第 一个写,毕竟关系到 模式) 2.自身属性: width / height / margin / ... -
html网页什么样的字体最好看,css设置各种中文字体样式代码
2017-08-13 14:30:58css代码如下: { font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu } 加上中文名“微软雅黑”是为了兼容opera 在css中使用英文表示法,以下附...网页字体样式华文宋体:ST