javascript - Calculate half of the height of the last list item in an ol with jquery -


the question kinda simple can't seem figure thing out.

how can calculate half of height of last list item in ol jquery? need shorten line exact amount of pixels make thing work:

my problem

try

var height_li = $('ol li:last').height()/2; 

references

http://api.jquery.com/height/

http://api.jquery.com/last-selector/


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -