模板:Linear-gradient/testcases
這是Template:Linear-gradient及其沙盒的測試樣例。刷新本頁以更新內容。 如果這裡有許多複雜的模板的用例,可能會因為MediaWiki的技術限制而出錯。 您還可以用Special:展開模板來測試模板的使用效果。 您可以通過以下鏈接測試本模板在不同外觀下的效果: |
Horizontal
[編輯]{{linear-gradient/sandbox|left|#ffdddd, #ddddff}}
Output: background-image: -moz-linear-gradient(left, #ffdddd, #ddddff); background-image: -ms-linear-gradient(left, #ffdddd, #ddddff); background-image: -o-linear-gradient(left, #ffdddd, #ddddff); background-image: -webkit-linear-gradient(left, #ffdddd, #ddddff);
With color-stop
[編輯]{{linear-gradient/sandbox|left|#ffdddd, #ddffdd 50%, #ddddff}}
Output: background-image: -moz-linear-gradient(left, #ffdddd, #ddffdd 50%, #ddddff); background-image: -ms-linear-gradient(left, #ffdddd, #ddffdd 50%, #ddddff); background-image: -o-linear-gradient(left, #ffdddd, #ddffdd 50%, #ddddff); background-image: -webkit-linear-gradient(left, #ffdddd, #ddffdd 50%, #ddddff);
Vertical
[編輯]{{linear-gradient/sandbox|top|#ffdddd, #ddddff}}
Output: background-image: -moz-linear-gradient(top, #ffdddd, #ddddff); background-image: -ms-linear-gradient(top, #ffdddd, #ddddff); background-image: -o-linear-gradient(top, #ffdddd, #ddddff); background-image: -webkit-linear-gradient(top, #ffdddd, #ddddff);
Diagonal
[編輯]{{linear-gradient/sandbox|top left|#ffdddd, #ddddff}}
Output: background-image: -moz-linear-gradient(top left, #ffdddd, #ddddff); background-image: -ms-linear-gradient(top left, #ffdddd, #ddddff); background-image: -o-linear-gradient(top left, #ffdddd, #ddddff); background-image: -webkit-linear-gradient(top left, #ffdddd, #ddddff);
Reverse
[編輯]{{linear-gradient/sandbox|right|#ffdddd, #ddddff}}
Output: background-image: -moz-linear-gradient(right, #ffdddd, #ddddff); background-image: -ms-linear-gradient(right, #ffdddd, #ddddff); background-image: -o-linear-gradient(right, #ffdddd, #ddddff); background-image: -webkit-linear-gradient(right, #ffdddd, #ddddff);
{{linear-gradient/sandbox|bottom|#ffdddd, #ddddff}}
Output: background-image: -moz-linear-gradient(bottom, #ffdddd, #ddddff); background-image: -ms-linear-gradient(bottom, #ffdddd, #ddddff); background-image: -o-linear-gradient(bottom, #ffdddd, #ddddff); background-image: -webkit-linear-gradient(bottom, #ffdddd, #ddddff);