CSS样式表不知道

来源:百度知道 编辑:UC知道 时间:2024/06/07 23:33:07
请问高手以下代码分别是什么意思,我几乎看不懂所有的东西。谢谢!!
.css
{
font-size: 9pt;
color: #000099;
}
.txt
{
font-size: 12px;
}
a:link
{
color: #0000FF;
text-decoration: none;
}
a:visited {
color: #0000FF;
text-decoration: none;
}
a:hover {
text-decoration: underline;
color: #336633;
}
a:active {
text-decoration: none;
color: #000000;
}
.title
{
font-size: 12pt;
color: #000099;
}
.align
{
text-align: left;
}
TextBox
{
height: 20px;
}

全部翻译啊,你也太狠了吧,看看书吧
font 是设置字体
size 是大小
color是颜色
.txt是类选择器
a:link是没有被访问的链接样式
text-decoration是文本修饰属性:none(无下划线的超链接样式)
a:visited是鼠标悬浮在连接上时的样式
a:active是鼠标正在按下时链接文字的样式
text-align: left是文本水平左对齐

大概的就这个意思了。

.点后面的都是样式名,到时候在页面里引用的方式是class="title"

font-size: 字体大小
color:字体颜色

a:link 链接样式 ,a:visited 访问后链接样式 ,a:hover 鼠标经过链接样式, a:active 点下链接时样式, 是网页全部链接的总体默认属性,如果你不对链接在做其他样式限制,那么网页所有的链接都会遵从这个样式属性。

text-decoration:none,文字没有下划线
text-decoration: underline; 文字有下划线

text-align:文字对其,left左对齐,center居中对齐,right 右对齐

height: 高度

用心回答,力保采纳,如果我的回答对你有帮助,请尽快给分

学习css可以看下下面的网站