好看的css样式,三种css样式表

CSS样式都有哪几种?

大小 font-size: x-large;(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD、em等

成都创新互联是一家集网站建设,椒江企业网站建设,椒江品牌网站建设,网站定制,椒江网站建设报价,网络营销,网络优化,椒江网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。

样式 font-style: oblique;(偏斜体) italic;(斜体) normal;(正常)

行高 line-height: normal;(正常) 单位:PX、PD、EM

粗细 font-weight: bold;(粗体) lighter;(细体) normal;(正常)

色彩background-color: #FFFFFF;

图片background-image: url();border-style: dotted;(点线) dashed;(虚线) solid;(实线) double;(双线) groove;(凹槽) ridge;(脊状) inset;(边框) outset;(边框)

类型list-style-type: disc;(圆点) circle;(圆圈) square;(方块) decimal;(数字) none(无)text-align:right; /*文字右对齐*/

text-align:left; /*文字左对齐*/

text-align:center; /*文字居中对齐*/

text-align:justify; /*文字分散对齐*/

vertical-align属性

vertical-align:top; /*垂直向上对齐*/

vertical-align:bottom; /*垂直向下对齐*/

vertical-align:middle; /*垂直居中对齐*/

vertical-align:text-top; /*文字垂直向上对齐*/

vertical-align:text-bottom; /*文字垂直向下对齐*/这些都是比较常用的如果你要把样式做的很漂亮这些还是不够的自己去看看文档吧慢慢学习

css怎么设置漂亮的中文字体样式

CSS即使设置了其他字体,也要看别的电脑里有没有,一般系统自带有宋体,黑体等字体,但是如果你电脑上有好看的字体,可以显示,在别的电脑没有你的字体,就显示不了,所以一般只会设置系统自带的字体。

设置方法:

html

head

style type="text/css"

p.ziti{font-family:"Times New Roman",Georgia,Serif}

/style

/head

body

h1CSS font-family/h1

p class="ziti"要更改的字体内容/p

/body

/html

CSS定义可以是:font-family:sans-serif

也就是CSS用 p{font-family:"Times New Roman",Georgia,Serif}

为什么我这里设置了三个,分别用","隔开呢,因为不同版本的操作系统,对字体的支持不同解释如下:

例如微软雅黑不同操作系统不同版本需要如下设置:

Windows XP及以前版本的Windows

font-family: Arial, 宋体, sans-serif;

Windows Vista和Windows 7

font-family: 'Microsoft Yahei', sans-serif;

Sorry,英文就无法设置字体了,因为中文字体都包含了英文字体。好在雅黑显示英文还凑合。

Mac及其它操作系统

font-family: sans-serif;

系统自带中文字体编码:

宋体SimSun黑体SimHei微软雅黑Microsoft YaHei微软正黑体Microsoft JhengHei新宋体NSimSun新细明体PMingLiU细明体MingLiU标楷体DFKai-SB仿宋FangSong楷体KaiTi仿宋_GB2312FangSong_GB2312楷体_GB2312KaiTi_GB2312

好看的CSS字体和表格样式还有文本框样式,好看的加分,100分。复制原码给我

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " "

html xmlns=" "

meta http-equiv="Content-Type" content="text/html; charset=utf-8" /

title无标题文档/titlehtml

head

style type="text/css"

!--

.BG {border: 1px solid #FFCC00; br}

.BG1 {border: 1px dashed #CCCCCC; br}

.BG2 {border: 1px inset #3399CC; br}

.BG3 {border-top-width: 1px; brborder-right-width: 1px; brborder-bottom-width: 1px; brborder-left-width: 1px; brborder-top-style: dotted; brborder-right-style: solid; brborder-bottom-style: double; brborder-left-style: outset; brborder-top-color: #999999; brborder-right-color: #FF9900; brborder-bottom-color: #CC9999; brborder-left-color: #99CC00; br}

.BG4 {border-top-width: 1px; brborder-right-width: 1px; brborder-bottom-width: 1px; brborder-left-width: 1px; brborder-top-style: dashed; brborder-right-style: none; brborder-bottom-style: dashed; brborder-left-style: none; brborder-top-color: #FFCC00; brborder-right-color: #FFCC00; brborder-bottom-color: #FFCC00; brborder-left-color: #FFCC00; br}

--

/style

/head

body

table width="300" border="0" cellpadding="0" cellspacing="0" class="BG"

tr

td bgcolor="#FFFF99"div align="center"模拟百度的表格/div/td

/tr

tr

td/td

/tr

/table

p /p

table width="300" border="0" cellpadding="0" cellspacing="0" class="BG1"

tr

td bgcolor="#CCCCCC"div align="center"模拟很多BLOG表格/div/td

/tr

tr

td/td

/tr

/table

p /p

table width="300" border="0" cellpadding="0" cellspacing="0" class="BG2"

tr

tddiv align="center"新款式表格/div/td

/tr

tr

td/td

/tr

/table

p /p

table width="300" border="0" cellpadding="0" cellspacing="0" class="BG3"

tr

tddiv align="center"花式表格/div/td

/tr

tr

td/td

/tr

/table

p /p

table width="300" border="0" cellpadding="0" cellspacing="0" class="BG4"

tr

tddiv align="center"去任意边表格/div/td

/tr

tr

td/td

/tr

/table

p /p

p /p

p /p

/body

/html

整个页面的,复制看看把

怎么设置漂亮的表格的样式 css

下面来个例子,你可以复制到你的编辑器里修改测试

style type="text/css"

table.gridtable {}{

font-family: verdana,arial,sans-serif;

font-size:11px;

color:#333333;

border-width: 1px;

border-color: #666666;

border-collapse: collapse;

}

table.gridtable th {}{

border-width: 1px;

padding: 8px;

border-style: solid;

border-color: #666666;

background-color: #dedede;

}

table.gridtable td {}{

border-width: 1px;

padding: 8px;

border-style: solid;

border-color: #666666;

background-color: #ffffff;

}

/style

!-- Table goes in the document BODY --

table class="gridtable"

tr

thInfo Header 1/ththInfo Header 2/ththInfo Header 3/th

/tr

tr

tdText 1A/tdtdText 1B/tdtdText 1C/td

/tr

tr

tdText 2A/tdtdText 2B/tdtdText 2C/td

/tr

/table

CSS(层叠样式表)级联样式表是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。

css好看的字体样式

style type="text/css"

.aa{ width:200px; height:44px; border:0; background-image:url(img1.png); }

.aa:active{ background-image:url(img2.png);}

/style

input type="button" class="aa" value=""/

IE6需要另外插一张类库

table好看的css样式

这个还行

style type="text/css"table.imagetable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; border-color: #999999; border-collapse: collapse;

}table.imagetable th { background:#b5cfd2 url('cell-blue.jpg'); border-width: 1px; padding: 8px; border-style: solid; border-color: #999999;

}table.imagetable td { background:#dcddc0 url('cell-grey.jpg'); border-width: 1px; padding: 8px; border-style: solid; border-color: #999999;

}

/style


分享名称:好看的css样式,三种css样式表
文章URL:http://csdahua.cn/article/dscodoi.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流