实例
转换不同元素中的文本:
h1 {text-transform:uppercase;}h2 {text-transform:capitalize;}p {text-transform:lowercase;}
属性定义...
AI君
2年前 (2020-02-24) 58℃
0喜欢
CSS 参考手册
实例
基础的文本阴影效果:
h1
{
text-shadow: 5px 5px 5px #FF0000;
}
亲自试一试
页面底部有更多实例。
浏览器支持
IE
Firefox
Chrome
Safar...
AI君
2年前 (2020-02-24) 50℃
0喜欢
CSS3 text-overflow 属性
实例
使用text-overflow属性:
div.test
{
text-overflow:ellipsis;
}
在此页底部有更多的例子。
浏览器...
AI君
2年前 (2020-02-24) 56℃
0喜欢
CSS3 text-outline 属性
实例
设置text-outline(文本-轮廓):
p.test{text-outline: 2px 2px #ff0000;}
浏览器支持
任何主流浏览器都不支持text...
AI君
2年前 (2020-02-24) 54℃
2喜欢
CSS3 text-justify 属性
实例
Justification改变字与字之间的间距:
div
{
text-align:justify;
text-justify:inter-word;
}
...
AI君
2年前 (2020-02-24) 55℃
0喜欢
CSS text-indent 属性
实例
缩进段落的第一行50像素:
p{text-indent:50px;}
属性定义及使用说明
text-indent 属性规定文本块中首行文本的缩进。
注意: 负值是允许的...
AI君
2年前 (2020-02-24) 55℃
0喜欢
CSS text-decoration-style 属性
CSS 参考手册
实例
在段落的下方显示一条波浪线:
p{text-decoration: underline;-moz-text-decoration-style: wa...
AI君
2年前 (2020-02-24) 56℃
0喜欢
CSS text-decoration-line 属性
CSS 参考手册
实例
在段落的顶部显示一条线:
p{text-decoration-line: overline;-moz-text-decoration-line: ov...
AI君
2年前 (2020-02-24) 53℃
0喜欢
CSS text-decoration-color 属性
CSS 参考手册
实例
改变下划线文本中下划线的颜色:
p{text-decoration: underline;text-decoration-color: red;-m...
AI君
2年前 (2020-02-24) 52℃
0喜欢
CSS text-decoration 属性
实例
设置h1,h2,h3和h4元素文本装饰:
h1 {text-decoration:overline}h2 {text-decoration:line-through}h3 ...
AI君
2年前 (2020-02-24) 53℃
0喜欢
CSS text-align-last 属性
CSS 参考手册
实例
把段落的最后一行向右对齐:
p{text-align: justify;text-align-last: right;-moz-text-align-last:...
AI君
2年前 (2020-02-24) 55℃
0喜欢
CSS text-align 属性
实例
h1, h2, 和 h3元素设置文本的对齐方式:
h1 {text-align:center}h2 {text-align:left}h3 {text-align:right}...
AI君
2年前 (2020-02-24) 55℃
0喜欢
CSS 参考手册
实例
在新窗口中打开超链接,并在所有其他标签页/窗口之前放置新的窗口:
a
{
target-name:new;
target-position:front;
}
浏览器支持
目前没有浏览器支持 targe...
AI君
2年前 (2020-02-24) 54℃
0喜欢
CSS 参考手册
实例
在新标签页而不是新窗口中打开超链接:
a
{
target-name:new;
target-new:tab;
}
浏览器支持
目前没有浏览器支持 target-new。
定义和用法
target-...
AI君
2年前 (2020-02-24) 52℃
0喜欢
CSS 参考手册
实例
在新窗口中打开所有超链接:
a
{
target-name:new;
}
浏览器支持
目前没有浏览器支持 target-name。
定义和用法
target-name 属性规定在何处打开超链接 (t...
AI君
2年前 (2020-02-24) 53℃
0喜欢
CSS 参考手册
实例
在新窗口中打开所有超链接,并在所有其他标签页/窗口上面放置新窗口:
a
{
target:new front;
}
亲自试一试
浏览器支持
目前没有浏览器支持 target。
定义和用法
targe...
AI君
2年前 (2020-02-24) 52℃
0喜欢
CSS table-layout 属性
实例
设置表格的布局算法:
table{table-layout:fixed;}
属性定义及使用说明
table-layout属性为表设置表格布局算法。
默认值:
...
AI君
2年前 (2020-02-24) 50℃
0喜欢
CSS tab-size 属性
CSS 参考手册
实例
设置一个 <pre> 元素的 tab-size:
pre {tab-size: 16; }pre {-moz-tab-size: 16; } /* 针对 Fire...
AI君
2年前 (2020-02-24) 53℃
0喜欢
CSS 参考手册
实例
将 h1 元素旋转 180 度(从上向下):
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
亲自试一试
浏览器支持
目前没有浏览器支持 rotation...
AI君
2年前 (2020-02-24) 71℃
0喜欢
CSS right 属性
实例
把图像的右边缘设置在其包含元素右边缘向左 5 像素的位置:
img{position:absolute;right:5px;}
属性定义及使用说明
对于 static 元素,为 a...
AI君
2年前 (2020-02-24) 58℃
0喜欢