本文目錄一覽:
設計一個jsp頁面,要求頁面的顏色從周一到周日按紅橙黃綠青藍紫變化
%@page contentType=”text/html;charset=utf-8″ pageEncoding=”utf-8″ import=”java.util.*”%
%
String[] s = new String[] { “紫7”, “紅1”, “橙2”, “黃3”, “綠4”, “青5”, “藍6” };
Calendar c = new GregorianCalendar();
int num = c.get(Calendar.DAY_OF_WEEK) – 1;
%
body style=”background-color:%=s[num]%”/body
把顏色代碼弄好就行了.
如何在JSP中實現表格顏色交替出現
哈哈,幫你解決了問題,而且還要感謝你,我學會了CSS中的expression
解決方法如下:
style
td,th{
background:expression((this.parentNode.rowIndex)%2==0?”#3DB7CC”:”#B3F4FF”);
}
/style
在head…/head加上這段代碼,就可以適用任何網頁,其中#……是顏色的代碼,可以隨意搭配,順便給你截張圖
祝咱倆都學習進步!
jsp怎樣設置網頁背景顏色
CSS裡面 body標籤設置:background-color:顏色
body{
background-color:顏色
}
cyan是什麼顏色
cyan是藍綠色,用於印刷的青色。
一、讀音
英 [ˈsaɪən],美 [ˈsaɪən]。
二、短語搭配
FFFF Cyan:青色。
Cyan Slate:青板。
CYAN MATTE:表藍色材質 ; 青藍色材料。
三、示例
The subtractive primaries are cyan, magenta, and yellow。
減色法三原色是藍綠色、品紅和黃色。
擴展資料
cyan的近義詞:
一、blue-green
釋義:藍綠色,至綠藍色。
讀音:英 [bluː ɡriːn],美 [bluː ɡriːn]。
示例:Aquamarine is light blue, blue-green and dark blue.
譯文:海藍寶石是淡藍色,藍綠色和深藍色。
二、teal
釋義:藍綠色。
讀音:英 [tiːl],美 [tiːl]。
示例:Maybe some teal or some blue, right?
譯文:或者有點藍綠色或有點藍色,是不是?
Cyan中文是什麼顏色
cyan
1. 青色;(深)藍色
2. The color obtained by mixing equal intensities of green and blue light. It is also the correct name of the subtractive primary color usually called 「blue」.
等強度的綠色光和藍色光混合得到的顏色。相減混色得到的「藍色」也用cyan這個詞。
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-tw/n/311370.html