To elaborate on Moffy's the answer is in the help file reply!
Goto 'LTspice Simulator' => 'Circuit Elements' => 'A. Special Functions', and read (just above the first table):
... The gates default to 0V/1V logic with a logic threshold of .5V, no propagation delay, and a 1Ohm output impedance. Output characteristics are set with these instance parameters:
<snip table of output parameters>
...
There are more (non-output) parameters detailed in the text after the table.
At a minimum, you will need to set
Vhigh. You should also set
Td and
Trise realistically, and also
tripdt to less than Trise/2 to avoid the simulator ignoring Td and Trise. It can also be useful to set
Rout.
It can be helpful in multi-gate complex logic to use
Ref. (or
Vt and
Vh for Schmidt devices) to set the input threshold independently from the output levels to implement level translation. This lets you have a 'layer' of input gates or buffers with input characteristics comparable to the real logic you are simulating, that translate down to LTspice's native 1V logic levels where you only care about
Td and
tripdt, then for output signals, use gates or buffers with
Ref set to 0.5 and the desired output characteristics to translate back up to 'real' logic levels.
These parameters need to be added as a space or comma separated list to the end of the component line of the SPICE netlist. To do so from the schematic editor, see Help:
'Schematic Capture' => 'Editing Components' => 'Super Expert Mode'
I usually put them on the 'Value' and/or 'Value2' attribute line, and at least initially, to avoid confusion set those lines as visible! You can also use the 'SpiceLine' or 'SpiceLine2' attributes as ArdWar showed. It matters not, as they all get concatenated with spaces between in the netlist. Don't add them to or before any attribute line that has something other than
parameter=value pairs on it.
I like to set parameters common to all logic in the schematic on one of the attribute lines and gate specific parameters on another so I can simply copy/paste the common parameters from one gate to the next.