天天看點

前端頁面的幾個常用 修改方式

1. 去掉<input> 标簽的 預設背景及邊框(親測submit/button管用)

style="BACKGROUND-COLOR: transparent; border: 0px;"
           

2.判斷 checkbox/radio 的狀态是否為 checked(使用EL表達式)

${TNews.newsRecommend==1? "checked=checked":"" }
//
${TColumn.columnType eq "單頁" ? "checked='checked'":""}
           

3.為 submit/button 添加背景圖檔,去邊框

<input type="submit" value="确定" style="width:50px;height:25px;border:none;background:url(${pageContext.request.contextPath }/images/u141.png)left top no-repeat;"/>