Thẻ mẫu lorem
Ví dụ
Chèn 50 từ văn bản ngẫu nhiên:
<!DOCTYPE html>
<html>
<body>
{% lorem 50 w %}
</body>
</html>
Chạy ví dụ »Định nghĩa và cách sử dụng
Thẻ lorem
chèn một lượng văn bản ngẫu nhiên được chỉ định.
Văn bản "ngẫu nhiên" là văn bản "Lorum ipsum" nổi tiếng, viết bằng chữ thường.
Ví dụ
Chèn 5 đoạn văn bản ngẫu nhiên:
<!DOCTYPE html>
<html>
<body>
{% lorem 5 p %}
</body>
</html>
Chạy ví dụ »Cú pháp
{% lorem count method random %}
Thông số
Value | Description |
---|---|
count | Optional. The number of words, or paragraphs to display. Default 1. |
method | Optional. Specifies whether to display blocks, words or HTML paragraphs.b for blocks of textp for HTML paragraphsw for wordsDefault b |
random | Optional. If specified, the random text start at a random word of the "lorum ipsum" text |