有没有在html中不加下划线链接?我不能使用style和css。
例如此代码使用“样式”,不能用于HTML电子邮件,任何其他想法? Css也无法使用。感谢帮助!它甚至可以在没有css / style的情况下实现它吗?
<a href="http://empty.com" style="text-decoration: none;"><font color="f8931c"><i>Text...</i></font></a><br><br>
答案 0 :(得分:1)
尽管我们希望避免使用可怕的重要标记,但对于html电子邮件模板,您必须将其添加到Processing by SplitsController#index as HTML
[1m[35mIssue Load (0.4ms)[0m SELECT "issues".* FROM "issues" WHERE "issues"."id" = $1 LIMIT 1 [["id", 1]]
[1m[36mSplit Load (0.3ms)[0m [1mSELECT "splits".* FROM "splits" ORDER BY "splits"."id" ASC LIMIT 1[0m
[1m[35mSplit Load (0.2ms)[0m SELECT "splits".* FROM "splits" WHERE "splits"."default" = $1 LIMIT 1 [["default", 1]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT "issues".* FROM "issues" WHERE "issues"."id" = $1 LIMIT 1[0m [["id", 1]]
[1m[35m (0.3ms)[0m SELECT SUM("splits"."quantity") FROM "splits"
[1m[36mCACHE (0.0ms)[0m [1mSELECT SUM("splits"."quantity") FROM "splits"[0m
[1m[35mSplit Load (0.2ms)[0m SELECT "splits".* FROM "splits"
[1m[36mSplit Load (0.3ms)[0m [1mSELECT "splits".* FROM "splits" WHERE "splits"."issue_id" = $1 ORDER BY updated_at desc[0m [["issue_id", 1]]
Rendered splits/index.html.erb within layouts/application (7.5ms)
Completed 200 OK in 625ms (Views: 620.9ms | ActiveRecord: 1.6ms)
属性中,如下所示:
text-decoration
或者你可以将文本包裹在一个范围内的锚点中,然后像这样设置样式:
<a href="http://empty.com" style="text-decoration: none !important;"><font color="f8931c"><i>Text...</i></font></a>