样式不是内联样式

问题描述:

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.

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>";

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.