dongxiong4571
dongxiong4571
2017-02-11 03:22

样式不是内联样式

已采纳

Having a problem with following line.

echo "<p><font size=+1  style=\"font: 16px verdana,sans-serif; text-decoration:none; color: navy;\"> Use <b><a href=\"/showcal.php?ownerid=$ownerid\">mysite.com/showcal.php?ownerid=$ownerid </a></b> as link for your viewers.</font><br>";

Font: 16px is working. color:navy is working. text-decoration is not working.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • dongxinche1264 dongxinche1264 4年前

    Apply the text-decoration: none to the 'a' tag

    echo "<p><font size=+1  style=\"font: 16px verdana,sans-serif; text-decoration:none; color: navy;\"> Use <b><a style=\"text-decoration:none;\" href=\"/showcal.php?ownerid=$ownerid\">mysite.com/showcal.php?ownerid=$ownerid </a></b> as link for your viewers.</font><br>";
    
    点赞 评论 复制链接分享
  • doukuipei9938 doukuipei9938 4年前

    text-decoration is already none on the (deprecated) font element. That's the default.

    And it's not an inheritable property, so the a can't get it from the parent.

    Apply the text-decoration: none to the a element.

    点赞 评论 复制链接分享

为你推荐