Does this line of code mean that the flowtype.js is being applied to all the type in the body tag?
$('body').flowtype();
I am new to javascript. If I want to have the flowtype target just H1's and P's do I just replace the 'body' with 'h1' and 'p'?
$('h1, p').flowtype()
should do it.
If you want to target a class, like <p class="paragraph">
, you'd use $('.paragraph').flowtype()
Or, if you want to target an id, like <p id="main-paragraph">
, you'd use $('#main-paragraph').flowtype()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.