Изменение фона значения ячейки столбца на основе значения (Отчет HTML, созданный awk)

похоже, что вы не добавили интерфейс в мост. то есть

sudo brctl addif xenbr0 eth0

попробуй

0
03.10.2018, 22:51
1 ответ

Это старый, но хороший справочник по основным свойствам CSS:http://www.htmlhelp.com/reference/css/properties.html

Я бы сделал

BEGIN {
  print "<html><head>"
  print "<title> Set the page title here </title>"
  print "<style type=\"text/css\">"
  print ".error {
  print "   color: red,"
  print "   font-size: larger,"
  print "   // other properties... take care, no trailing comma allowed"
  print "}"
  print "</style></head>"
  print "<body>"
  # use P tags, not BR line breaks -- easier to apply styling.
  print "<p>The report provides overall Percentage Secured in the given subjects.</p>"
  print "<table border=1 bgcolor=\"LemonChiffon\" cellspacing=1 cellpadding=1>"
}

NR == 1 {...} # I would use TH tags for the headers

NR > 1 {
  # Data rows
  print "<tr>"
  for ( i = 1; i <= NF; i++ ) {
    class = $i < 100 ? "class=\"error\"" : ""
    printf "<td %s>%s</td>\n", class, $i
  }
  print "</tr>"
}

Объединение стилей в одном месте поможет, если

0
28.01.2020, 04:13

Теги

Похожие вопросы