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.
我正在尝试将元素添加到如下变量
$tooltipElement = $('#' + tooltipId); //I want to edit p element inside the tooltipElement variable. $tooltipElement.//<p>.css('font-size':'15');
我怎么做?非常感谢。
.find:
.find
$tooltipElement.find('p').css('font-size', '15');
另外,你的意思是15px?
15px