2014-12-16 10 views
7

Voglio produrre una tabella HTML nel sito Web guidato da Jekyll.Come aggiungere più classi a MarkDown usando Jekyll?

La tabella deve essere formattato con table e table-stripped classi come questo:

<table class="table table-stripped"> 

Come posso farlo?

Problema simile: come aggiungere più classi CSS al paragrafo in MarkDown utilizzato in Jekyll?

risposta

18

Ho trovato le seguenti soluzioni:

{: .table .table-striped} 
|Port | Content served by | queries/second | 
| ------------------------------------------| 
| 80 | Apache   | 130   | 
| 8080 | Varnish   | 6200   | 


{: .aaa .bbb} 
Lorem ipsum... 
+0

classi agli elementi HTML sono attributi. Puoi ottenere maggiori informazioni su come aggiungere attributi agli elementi di Markdown quando usi Kramdown (il parser usato da Jekyll) su http://kramdown.gettalong.org/syntax.html#attribute-list-definitions. –

+0

Puoi accettare la tua risposta se questo ti ha risolto il problema. – raphael

+0

grazie mille! –

Problemi correlati