如何使下面的文本更厚,同时保持链接的原样?
li
{
list-style-type:none;
font-size: 14px;
line-height:28px;
font-weight:thick
}
a:link
{
color:#3399CC;
}
...
<div id="left_column" >
<ul>
<li><a href="a.html">Im happy as I am</a> - I want to be less thick</li>
<li><a href="b.html">Im also happy as I am</a> - I also want to be less thick</li>
</ul>
</div>发布于 2012-10-09 04:20:08
看起来你想让链接加粗,文本不要太粗(不加粗)
看看下面的代码,除了我在<li>中定义了font-weight:normal;,在<a>标记中定义了font-weight:700;之外,与您的代码相同。Here's the working example。
在您的代码中尝试以下内容:
li
{
list-style-type:none;
font-size: 14px;
line-height:28px;
font-weight:normal;
}
a:link
{
font-weight: 700;
color:#3399CC;
}
<div id="left_column" >
<ul>
<li><a href="a.html">Im happy as I am</a> - I want to be less thick</li>
<li><a href="b.html">Im also happy as I am</a> - I also want to be less thick</li>
</ul>
</div>发布于 2012-10-09 14:25:22
我想this code已经回答了你的问题。
<html>
<head>
<style>
body
{
color:#3399CC;
font-size: 10px;
}
li {
list-style-type:none;
font-size: 22px;
line-height:28px;
font-weight:thick
}
ol>li>a{
color:#3399CC;
font-size: 10px;
}
</style>
<body>
<div id="left_column" >
<ol>
<li><a href="a.html">Im happy as I am</a> I want to be less thick</li>
<li><a href="b.html">Im also happy as I am</a> I also want to be less thick</li>
</ol>
hree
</div>
</body>
</html>https://stackoverflow.com/questions/12788683
复制相似问题