说明:以class属性包含myclass的E对象作为选择符。下划线通过设置text-decoration属性来实现。语法:text-decoration: || || 默认值:看每个独立属性 适用于:所有元素 继承性:无 动画性:看每个独立属性 计算...
在css中,如何设置一部分超链接有下划线,一部分没有下划线
给链接加样式:把想要有下划线的加text-decoration:underline;
把不想要有的加上text-decoration:none;
希望能帮到你/2014-03-22
给其中一种定义个类,通过类选择器控制是否有下划线这一样式。
类选择器允许以一种独立于文档元素的方式来指定样式。
语法:
E.myclass { sRules }
说明:
以class属性包含myclass的E对象作为选择符。
下划线通过设置text-decoration属性来实现。
语法:
text-decoration:<' text-decoration-line '> || <' text-decoration-style '> || <' text-decoration-color '>
默认值:看每个独立属性
适用于:所有元素
继承性:无
动画性:看每个独立属性
计算值:看每个独立属性
相关属性:<' text-decoration-skip '> || <' text-underline-position '>
取值:
<' text-decoration-line '>:
指定文本装饰的种类。相当于CSS2.1的 <' text-decoration '> 属性,可取值:none | underline | overline | line-through | blink
<' text-decoration-style '>:
指定文本装饰的样式。
<' text-decoration-color '>:
指定文本装饰的颜色。2015-11-29
给链接加样式:把想要有下划线的加text-decoration:underline;
把不想要有的加上text-decoration:none;
希望能帮到你/2015-11-12
下划线是超链接自带的,不想有下划线,no-decoration2015-11-20