小编use*_*182的帖子

从同一个onclick调用两个函数

HTML和JS

如何从一个onclick事件中调用2个函数?这是我的代码

 <input id ="btn" type="button" value="click" onclick="pay() cls()"/>
Run Code Online (Sandbox Code Playgroud)

这两个函数是pay()和cls().谢谢!

html javascript onclick

101
推荐指数
9
解决办法
44万
查看次数

如何在同一<p>中设置两种不同的字体大小

我有一段HTML代码,我坚持使用.如何将此文本的第一部分设置为20px的字体大小,将<br>标签后的文本设置为15px的字体大小?

或者,如果我完全错误的话,如果不将它们放在不同的标签中,我该怎么做呢?

<p id="losinfo"> Los Santos: a sprawling sun-soaked metropolis full of 
self-help gurus, starlets and fading celebrities, once the envy of the 
Western world, now struggling to stay afloat in an era of economic 
uncertainty and cheap reality TV <br><br> Our largest open world yet
 - by far - and spanning vastly diverse cultural and geographical areas, 
the entire world of Grand Theft Auto V is open from the very beginning 
of the game to explore. Visitors …
Run Code Online (Sandbox Code Playgroud)

html css font-size paragraph

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

html ×2

css ×1

font-size ×1

javascript ×1

onclick ×1

paragraph ×1