HTML和JS
如何从一个onclick事件中调用2个函数?这是我的代码
<input id ="btn" type="button" value="click" onclick="pay() cls()"/>
Run Code Online (Sandbox Code Playgroud)
这两个函数是pay()和cls().谢谢!
我有一段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)