为了账号安全,请及时绑定邮箱和手机立即绑定

怎么设置字体变大?

怎么设置字体变大?

<script type="text/javascript" > function mousedown(event) {     var e=window.event;     var obj=e.srcElement;     obj.style.color="red";     obj.style.font-size:20px;   //这里 } function mouseup(event) {     var e=window.event;     var obj=e.srcElement;     obj.style.color="black";     window.open("https://www.baidu.com/","百度",""); } </script> </head> <body > <p id="p1" style="color:black" onmousedown="mousedown()" onmouseup="mouseup()"><u>百度</u></p> </body>字体大小不是这个吗?哪里错了?
查看完整描述

14 回答

已采纳
?
无所畏惧小小小

TA贡献20条经验 获得超5个赞

obj.style.fontSize="20px";

测试成功

查看完整回答
反对 回复 2016-12-09
  • 错过了年华
    错过了年华
    在js里改样式都是第二个单词首字母大写?横杠也要去掉?这些该怎么记忆用法?
?
我的南方

TA贡献63条经验 获得超27个赞

fontSize 把杠去掉然后把后面的首字母大写。

查看完整回答
2 反对 回复 2016-12-09
?
慕移动7200329

TA贡献246条经验 获得超0个赞

http://www.lundunjin.org/news/html/?10938310.html

http://www.lundunjin.org/news/html/?10938321.html

http://www.lundunjin.org/news/html/?10938342.html

http://www.lundunjin.org/news/html/?10938351.html

http://www.lundunjin.org/news/html/?10938367.html

http://www.lundunjin.org/news/html/?10938383.html

http://www.lundunjin.org/news/html/?10938396.html

http://www.lundunjin.org/news/html/?10938410.html

http://www.lundunjin.org/news/html/?10938426.html

http://www.lundunjin.org/news/html/?10938441.html

http://www.lundunjin.org/news/html/?10938458.html

http://www.lundunjin.org/news/html/?10938468.html

http://www.lundunjin.org/news/html/?10938484.html

http://www.lundunjin.org/news/html/?10938499.html

http://www.lundunjin.org/news/html/?10938510.html

http://www.lundunjin.org/news/html/?10938521.html

http://www.lundunjin.org/news/html/?10938539.html

http://www.lundunjin.org/news/html/?10938556.html

http://www.lundunjin.org/news/html/?10938567.html

http://www.lundunjin.org/news/html/?10938579.html

http://www.lundunjin.org/news/html/?10938593.html

http://www.lundunjin.org/news/html/?10938602.html

http://www.lundunjin.org/news/html/?10938618.html

http://www.lundunjin.org/news/html/?10938633.html

http://www.lundunjin.org/news/html/?10938645.html

http://www.lundunjin.org/news/html/?10938664.html

http://www.lundunjin.org/news/html/?10938677.html

http://www.lundunjin.org/news/html/?10938693.html

http://www.lundunjin.org/news/html/?10938707.html

http://www.lundunjin.org/news/html/?10938723.html

http://www.lundunjin.org/news/html/?10938737.html

http://www.lundunjin.org/news/html/?10938750.html

http://www.lundunjin.org/news/html/?10938772.html

http://www.lundunjin.org/news/html/?10938785.html

http://www.lundunjin.org/news/html/?10938792.html

http://www.lundunjin.org/news/html/?10938806.html

http://www.lundunjin.org/news/html/?10938813.html

http://www.lundunjin.org/news/html/?10938831.html

http://www.lundunjin.org/news/html/?10938846.html

http://www.lundunjin.org/news/html/?10938862.html

http://www.lundunjin.org/news/html/?10938879.html

http://www.lundunjin.org/news/html/?10938896.html

http://www.lundunjin.org/news/html/?10938905.html

http://www.lundunjin.org/news/html/?10938917.html

http://www.lundunjin.org/news/html/?10938929.html

http://www.lundunjin.org/news/html/?10938938.html

http://www.lundunjin.org/news/html/?10938958.html

http://www.lundunjin.org/news/html/?10938972.html

http://www.lundunjin.org/news/html/?10938989.html

http://www.lundunjin.org/news/html/?10939004.html

http://www.lundunjin.org/news/html/?10939017.html

http://www.lundunjin.org/news/html/?10939032.html

http://www.lundunjin.org/news/html/?10939044.html

http://www.lundunjin.org/news/html/?10939056.html

http://www.lundunjin.org/news/html/?10939073.html

http://www.lundunjin.org/news/html/?10939088.html

http://www.lundunjin.org/news/html/?10939104.html

http://www.lundunjin.org/news/html/?10939114.html

http://www.lundunjin.org/news/html/?10939153.html

http://www.lundunjin.org/news/html/?10939162.html

http://www.lundunjin.org/news/html/?10939173.html

http://www.lundunjin.org/news/html/?10939179.html

http://www.lundunjin.org/news/html/?10939188.html

http://www.lundunjin.org/news/html/?10939195.html

http://www.lundunjin.org/news/html/?10939202.html

http://www.lundunjin.org/news/html/?10939213.html

http://www.lundunjin.org/news/html/?10939220.html

http://www.lundunjin.org/news/html/?10939229.html

http://www.lundunjin.org/news/html/?10939241.html

http://www.lundunjin.org/news/html/?10939249.html

http://www.lundunjin.org/news/html/?10939265.html

http://www.lundunjin.org/news/html/?10939274.html

http://www.lundunjin.org/news/html/?10939279.html

http://www.lundunjin.org/news/html/?10939287.html

http://www.lundunjin.org/news/html/?10939301.html

http://www.lundunjin.org/news/html/?10939308.html

http://www.lundunjin.org/news/html/?10939314.html

http://www.lundunjin.org/news/html/?10939327.html

http://www.lundunjin.org/news/html/?10939333.html

http://www.lundunjin.org/news/html/?10939342.html

http://www.lundunjin.org/news/html/?10939349.html

http://www.lundunjin.org/news/html/?10939362.html

http://www.lundunjin.org/news/html/?10939369.html

http://www.lundunjin.org/news/html/?10939376.html

http://www.lundunjin.org/news/html/?10939386.html

http://www.lundunjin.org/news/html/?10939399.html

http://www.lundunjin.org/news/html/?10939409.html

http://www.lundunjin.org/news/html/?10939417.html

http://www.lundunjin.org/news/html/?10939424.html

http://www.lundunjin.org/news/html/?10939431.html

http://www.lundunjin.org/news/html/?10939444.html

http://www.lundunjin.org/news/html/?10939455.html

http://www.lundunjin.org/news/html/?10939466.html

http://www.lundunjin.org/news/html/?10939475.html

http://www.lundunjin.org/news/html/?10939484.html

http://www.lundunjin.org/news/html/?10939490.html

http://www.lundunjin.org/news/html/?10939497.html

http://www.lundunjin.org/news/html/?10939505.html

http://www.lundunjin.org/news/html/?10939517.html

http://www.lundunjin.org/news/html/?10939527.html

http://www.lundunjin.org/news/html/?10939532.html

http://www.lundunjin.org/news/html/?10939537.html

http://www.lundunjin.org/news/html/?10939549.html

http://www.lundunjin.org/news/html/?10939560.html

http://www.lundunjin.org/news/html/?10939575.html

http://www.lundunjin.org/news/html/?10939580.html

http://www.lundunjin.org/news/html/?10939587.html

http://www.lundunjin.org/news/html/?10939601.html

http://www.lundunjin.org/news/html/?10939607.html

http://www.lundunjin.org/news/html/?10939613.html

http://www.lundunjin.org/news/html/?10939627.html

http://www.lundunjin.org/news/html/?10939632.html

http://www.lundunjin.org/news/html/?10939644.html

http://www.lundunjin.org/news/html/?10939652.html

http://www.lundunjin.org/news/html/?10939658.html

http://www.lundunjin.org/news/html/?10939669.html

http://www.lundunjin.org/news/html/?10939681.html

http://www.lundunjin.org/news/html/?10939686.html

http://www.lundunjin.org/news/html/?10939696.html

http://www.lundunjin.org/news/html/?10939703.html

http://www.lundunjin.org/news/html/?10939712.html

http://www.lundunjin.org/news/html/?10939722.html

http://www.lundunjin.org/news/html/?10939735.html

http://www.lundunjin.org/news/html/?10939744.html

http://www.lundunjin.org/news/html/?10939752.html

http://www.lundunjin.org/news/html/?10939761.html

http://www.lundunjin.org/news/html/?10939768.html

http://www.lundunjin.org/news/html/?10939776.html

http://www.lundunjin.org/news/html/?10939782.html

http://www.lundunjin.org/news/html/?10939793.html

http://www.lundunjin.org/news/html/?10939802.html

http://www.lundunjin.org/news/html/?10939813.html

http://www.lundunjin.org/news/html/?10939821.html

http://www.lundunjin.org/news/html/?10939828.html

http://www.lundunjin.org/news/html/?10939838.html

http://www.lundunjin.org/news/html/?10939849.html

http://www.lundunjin.org/news/html/?10939855.html

http://www.lundunjin.org/news/html/?10939864.html

http://www.lundunjin.org/news/html/?10939872.html

http://www.lundunjin.org/news/html/?10939883.html

http://www.lundunjin.org/news/html/?10939896.html

http://www.lundunjin.org/news/html/?10939904.html

http://www.lundunjin.org/news/html/?10939910.html

http://www.lundunjin.org/news/html/?10939921.html

http://www.lundunjin.org/news/html/?10939933.html

http://www.lundunjin.org/news/html/?10939937.html

http://www.lundunjin.org/news/html/?10939944.html

http://www.lundunjin.org/news/html/?10939954.html

http://www.lundunjin.org/news/html/?10939964.html

http://www.lundunjin.org/news/html/?10939970.html

http://www.lundunjin.org/news/html/?10939976.html

http://www.lundunjin.org/news/html/?10939993.html

http://www.lundunjin.org/news/html/?10940000.html

http://www.lundunjin.org/news/html/?10940009.html

http://www.lundunjin.org/news/html/?10940018.html

http://www.lundunjin.org/news/html/?10940026.html

http://www.lundunjin.org/news/html/?10940039.html

http://www.lundunjin.org/news/html/?10940048.html

http://www.lundunjin.org/news/html/?10940054.html

http://www.lundunjin.org/news/html/?10940068.html

http://www.lundunjin.org/news/html/?10940075.html

http://www.lundunjin.org/news/html/?10940088.html

http://www.lundunjin.org/news/html/?10940093.html

http://www.lundunjin.org/news/html/?10940100.html

http://www.lundunjin.org/news/html/?10940108.html

http://www.lundunjin.org/news/html/?10940118.html

http://www.lundunjin.org/news/html/?10940127.html

http://www.lundunjin.org/news/html/?10940137.html

http://www.lundunjin.org/news/html/?10940153.html

http://www.lundunjin.org/news/html/?10940162.html

http://www.lundunjin.org/news/html/?10940170.html

http://www.lundunjin.org/news/html/?10940175.html

http://www.lundunjin.org/news/html/?10940185.html

http://www.lundunjin.org/news/html/?10940195.html

http://www.lundunjin.org/news/html/?10940204.html

http://www.lundunjin.org/news/html/?10940212.html

http://www.lundunjin.org/news/html/?10940224.html

http://www.lundunjin.org/news/html/?10940229.html

http://www.lundunjin.org/news/html/?10940239.html

http://www.lundunjin.org/news/html/?10940244.html

http://www.lundunjin.org/news/html/?10940255.html

http://www.lundunjin.org/news/html/?10940268.html

http://www.lundunjin.org/news/html/?10940282.html

http://www.lundunjin.org/news/html/?10940289.html

http://www.lundunjin.org/news/html/?10940305.html

http://www.lundunjin.org/news/html/?10940311.html

http://www.lundunjin.org/news/html/?10940324.html

http://www.lundunjin.org/news/html/?10940334.html

http://www.lundunjin.org/news/html/?10940341.html

http://www.lundunjin.org/news/html/?10940350.html

http://www.lundunjin.org/news/html/?10940359.html

http://www.lundunjin.org/news/html/?10940367.html

http://www.lundunjin.org/news/html/?10940377.html

http://www.lundunjin.org/news/html/?10940387.html

http://www.lundunjin.org/news/html/?10940395.html

http://www.lundunjin.org/news/html/?10940403.html

http://www.lundunjin.org/news/html/?10940410.html

http://www.lundunjin.org/news/html/?10940417.html

http://www.lundunjin.org/news/html/?10940426.html

http://www.lundunjin.org/news/html/?10940442.html

http://www.lundunjin.org/news/html/?10940452.html

http://www.lundunjin.org/news/html/?10940461.html

http://www.lundunjin.org/news/html/?10940468.html

http://www.lundunjin.org/news/html/?10940474.html

http://www.lundunjin.org/news/html/?10940480.html

http://www.lundunjin.org/news/html/?10940493.html

http://www.lundunjin.org/news/html/?10940503.html

http://www.lundunjin.org/news/html/?10940513.html

http://www.lundunjin.org/news/html/?10940539.html

http://www.lundunjin.org/news/html/?10940546.html

http://www.lundunjin.org/news/html/?10940554.html

http://www.lundunjin.org/news/html/?10940564.html

http://www.lundunjin.org/news/html/?10940576.html

http://www.lundunjin.org/news/html/?10940586.html

http://www.lundunjin.org/news/html/?10940592.html

http://www.lundunjin.org/news/html/?10940601.html

http://www.lundunjin.org/news/html/?10940612.html

http://www.lundunjin.org/news/html/?10940624.html

http://www.lundunjin.org/news/html/?10940633.html

http://www.lundunjin.org/news/html/?10940640.html

http://www.lundunjin.org/news/html/?10940649.html

http://www.lundunjin.org/news/html/?10940655.html

http://www.lundunjin.org/news/html/?10940662.html

http://www.lundunjin.org/news/html/?10940670.html

http://www.lundunjin.org/news/html/?10940679.html

http://www.lundunjin.org/news/html/?10940688.html

http://www.lundunjin.org/news/html/?10940694.html

http://www.lundunjin.org/news/html/?10940711.html

http://www.lundunjin.org/news/html/?10940718.html

http://www.lundunjin.org/news/html/?10940728.html

http://www.lundunjin.org/news/html/?10940733.html

http://www.lundunjin.org/news/html/?10940741.html

http://www.lundunjin.org/news/html/?10940754.html

http://www.lundunjin.org/news/html/?10940761.html

http://www.lundunjin.org/news/html/?10940771.html

http://www.lundunjin.org/news/html/?10940782.html

http://www.lundunjin.org/news/html/?10940790.html

http://www.lundunjin.org/news/html/?10940802.html

http://www.lundunjin.org/news/html/?10940810.html

http://www.lundunjin.org/news/html/?10940819.html

http://www.lundunjin.org/news/html/?10940829.html

http://www.lundunjin.org/news/html/?10940843.html

http://www.lundunjin.org/news/html/?10940846.html

http://www.lundunjin.org/news/html/?10940853.html

http://www.lundunjin.org/news/html/?10940863.html

http://www.lundunjin.org/news/html/?10940870.html

http://www.lundunjin.org/news/html/?10940881.html

http://www.lundunjin.org/news/html/?10940894.html

http://www.lundunjin.org/news/html/?10940902.html

http://www.lundunjin.org/news/html/?10940913.html

http://www.lundunjin.org/news/html/?10940922.html

http://www.lundunjin.org/news/html/?10940929.html

http://www.lundunjin.org/news/html/?10940937.html

http://www.lundunjin.org/news/html/?10940950.html

http://www.lundunjin.org/news/html/?10940967.html

http://www.lundunjin.org/news/html/?10940976.html

http://www.lundunjin.org/news/html/?10940989.html

http://www.lundunjin.org/news/html/?10940994.html

http://www.lundunjin.org/news/html/?10941002.html

http://www.lundunjin.org/news/html/?10941015.html

http://www.lundunjin.org/news/html/?10941021.html

http://www.lundunjin.org/news/html/?10941030.html

http://www.lundunjin.org/news/html/?10941038.html

http://www.lundunjin.org/news/html/?10941047.html

http://www.lundunjin.org/news/html/?10941058.html

http://www.lundunjin.org/news/html/?10941068.html

http://www.lundunjin.org/news/html/?10941075.html

http://www.lundunjin.org/news/html/?10941083.html

http://www.lundunjin.org/news/html/?10941102.html

http://www.lundunjin.org/news/html/?10941108.html

http://www.lundunjin.org/news/html/?10941115.html

http://www.lundunjin.org/news/html/?10941125.html

http://www.lundunjin.org/news/html/?10941134.html

http://www.lundunjin.org/news/html/?10941142.html

http://www.lundunjin.org/news/html/?10941156.html

http://www.lundunjin.org/news/html/?10941167.html

http://www.lundunjin.org/news/html/?10941178.html

http://www.lundunjin.org/news/html/?10941188.html

http://www.lundunjin.org/news/html/?10941195.html

http://www.lundunjin.org/news/html/?10941203.html

http://www.lundunjin.org/news/html/?10941213.html

http://www.lundunjin.org/news/html/?10941222.html

http://www.lundunjin.org/news/html/?10941229.html

http://www.lundunjin.org/news/html/?10941240.html

http://www.lundunjin.org/news/html/?10941248.html

http://www.lundunjin.org/news/html/?10941259.html

http://www.lundunjin.org/news/html/?10941267.html

http://www.lundunjin.org/news/html/?10941272.html

http://www.lundunjin.org/news/html/?10941287.html

http://www.lundunjin.org/news/html/?10941298.html

http://www.lundunjin.org/news/html/?10941309.html

http://www.lundunjin.org/news/html/?10941312.html

http://www.lundunjin.org/news/html/?10941322.html

http://www.lundunjin.org/news/html/?10941330.html

http://www.lundunjin.org/news/html/?10941339.html

http://www.lundunjin.org/news/html/?10941345.html

http://www.lundunjin.org/news/html/?10941354.html

http://www.lundunjin.org/news/html/?10941363.html

http://www.lundunjin.org/news/html/?10941375.html

http://www.lundunjin.org/news/html/?10941382.html

查看完整回答
反对 回复 2021-09-15
?
qq_醉落夕风_0

TA贡献25条经验 获得超1个赞

js代码里面驼峰式,不要用-,识别不出来的

查看完整回答
反对 回复 2018-08-17
?
Twinkle3

TA贡献4条经验 获得超0个赞

obj.style.fontSize = '20px';

查看完整回答
反对 回复 2016-12-10
?
xiangyunlcs

TA贡献5条经验 获得超7个赞

obj.style.fontSize:20px;

查看完整回答
反对 回复 2016-12-09
?
Dream11234123

TA贡献1条经验 获得超0个赞

<script>alert(1);<script>

查看完整回答
反对 回复 2016-12-09
?
rubyc

TA贡献47条经验 获得超7个赞

//img1.sycdn.imooc.com//584a45c700012fea07520322.jpg看图,也许你会更加明白。

查看完整回答
反对 回复 2016-12-09
?
sih

TA贡献1条经验 获得超0个赞

obj.style.fontSize:20 + 'px';

查看完整回答
反对 回复 2016-12-09
?
shineky

TA贡献9条经验 获得超3个赞

obj.style.fontSize:20px;

查看完整回答
反对 回复 2016-12-09
?
孤单又灿烂的神

TA贡献4条经验 获得超0个赞

怎么可能是– 首字母大写
查看完整回答
反对 回复 2016-12-09
?
Finit

TA贡献222条经验 获得超80个赞

改成obj.style.fontSize=20px; 望采纳

查看完整回答
反对 回复 2016-12-09
?
J小流

TA贡献10条经验 获得超0个赞

在标签里是font-size js和css样式里应该是fontSize
查看完整回答
反对 回复 2016-12-09
?
qq_小小苏_0

TA贡献4条经验 获得超1个赞

应该用等号
查看完整回答
反对 回复 2016-12-08
?
00800

TA贡献3条经验 获得超8个赞

额,应该是fontSize啊。。。。。。。。。。
查看完整回答
反对 回复 2016-12-08
  • 错过了年华
    错过了年华
    我在<style type="text/css">都是用font-size的,按你说的也不行啊,你试过了吗?
  • 00800
    00800
    额??
  • 错过了年华
    错过了年华
    我在style type=text/css都是写font-size的,而且按你说的也不行啊,你试过行了吗?
点击展开后面1
  • 14 回答
  • 0 关注
  • 5832 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信