我试图在两行中获取按钮文本,请参见小提琴:http: //jsfiddle.net/gaurav360/Yxqx2/
它在除Opera之外的所有浏览器中运行良好...
提前致谢。
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用一个button元素——更简单,结果更一致:
button
<button id="btnQuoteNow" class="wrapText" type="button">Quote<br>Now</button>