$B:4F#$H?=$7$^$9!#(B<br>$B$$$D$b$*@$OC$K$J$C$F$*$j$^$9!#(B<br><br>&lt;span id=&quot;hoge&quot; style=&quot;&quot;&gt;<br>...<br>&lt;/span&gt;<br><br>&lt;span id=&quot;hoge-2&quot; style=&quot;&quot;&gt;<br>...<br>&lt;/span&gt;<br><br>public String getHogeStyle() {<br>
&nbsp;&nbsp;&nbsp; return someCondition ? null : &quot;display:none&quot;;<br>}<br><br>$B$_$?$$$J$3$H$r$d$j$?$+$C$?$N$G$9$,!"(Bhoge-2$B$N$[$&$K$O%@%$%J%_%C%/%W%m%Q%F%#$OE,MQ$5$l$J$$$_$?$$$G$9!#(B<br>$B%a%=%C%I(B2$B$DMQ0U$9$l$P$$$$$@$1$N$3$H$J$s$G$9$,!#!#(B<br><br>$B$=$s$J$K:$$C$F$k$o$1$G$O$J$$$N$G$9$,!"0l1~Js9p$G$7$?!#(B<br><br><br>