如何去除下划线

来源:3-24 编程练习

hy_wang

2017-11-22 20:20:28

<!DOCTYPE html>

<html>

    <head>

   <meta charset="UTF-8">

   <title>伪类选择器</title>

   <style type="text/css">

    p{height:30px;text-decoration:none;}

       /*补充代码*/

   </style>

</head>

<body>

<h2>商品列表</h2>

<p class="suit">

<a href="#">衣服鞋帽</a>

</p>

   <p class="wc">

        <a href="#">厕所清洁</a>

   </p>

   <p class="skin">

        <a href="#">化妆用品</a>

   </p>     

</body>

</html>

请问为什么我这个不能去除下划线


写回答

1回答

慕粉1758158459

2017-11-22

应该在a{text-decoration: none;}写

0
hy_wang
h 非常感谢!是我粗心了。。
h017-11-22
共1条回复

0 学习 · 36712 问题

查看课程