css在JQuery、JS、HTML中的写法
在JQuery中代码如下:
//一个属性 $(".searchText").css("display","block"); //不止一个属性 $(".searchText").css({"display":"block","color":"red"});
在js中写法:
<style type="text/css"> html, body, * { font-family: "Microsoft YaHei" ! important; } .c1 { background-color: #FFFFFF; color: black; } </style>
在HTML中.css文件中
.c1 { background-color: #FFFFFF; color: black; }
在div中写
<h1 class="blog_name" style="Cursor:Pointer;margin-top:50px;border:solid gray 1px;">${blog_name }</h1>
相关推荐
hellowzm 2020-07-19
NARUTOLUOLUO 2020-08-03
qiupu 2020-11-04
多读书读好书 2020-11-03
RedCode 2020-10-28
jiedinghui 2020-10-25
Ladyseven 2020-10-22
hellowzm 2020-10-12
zuncle 2020-09-28
Ladyseven 2020-09-11
jiedinghui 2020-09-07
xiaohuli 2020-09-02
葉無聞 2020-09-01
impress 2020-08-26
ThikHome 2020-08-24
nicepainkiller 2020-08-20
hellowzm 2020-08-18