Navigate horizontally with UL and Li

time:17-05-19 forum:HTML web page, JS language and code
  http://www.cnblogs.com/duhongyu216/arti... 83719.html

1, generated file (Note: it must be set to the encoding format of the file, otherwise there may be chaos code)
[code]

/ * ul style */
div.menu / > > = / * remove the front symbol / > > / * the distance from the outside element is 0 / > >; / * the distance from the internal element is 0 / > width: Auto; / * width adjusts the Li style */
div.menu UL in div />}
/ * all class for menu based on element content. */
div.menu UL Li a, div.menu UL Li a:visited
{
background-color: #465c71; / * background color / > = / * text color / > = / * will be displayed as block level element, this element before this element. Then with a newline character */
line-height: 1.35em; / * line high */
padding: 4PX 20px; / * internal packed distance */
text-decoration: none; / * does not display a hyperlink underline */
white-space: Confucianism; / * for the blank in the text, the text will continue on the same line. Continue until.Lt; br.gt; tag. */
}
* a style in UL in div of menu (the mouse moves to the style in the element) */
div.menu UL Li a:hover
> / * background color / > = / * text color / > > / * does not display hyperlink underline * / / / / / * / / * Br />}
* a style in UL in div for menu, */
div.menu UL Li a:active
> / * background color / > * / * text color / > > / * does not display hyperlink underline / > > > > > }[/code]

2,

[code]
.Lt; div class=.quot; menu.quot;.Gt;.Gt; Cript.#058; void (0);.Quot;.Gt; working log.Lt; /a.gt;.Lt; /li.gt;
.Lt; li.gt;.Lt; dialectical; dialectical; 0; dialectical; .lt; /ul.gt;
.Lt; /div.gt; [/code]

prev:The high season of chickenpox is coming!... next:US media: young people in China's Intern...
post comment
Notice



approved   These 9 kinds of scary symptoms foun...   A 9 year old student corrected the w...   A survey of lonely elderly people in...   Salted pickled vegetables are carcin...   Angels don't give up! The brachless ...
rand   DIV CSS picture slice   Javascript displays refreshing conte...   The beautiful loading progress bar i...   Display special progress bar and tra...   Automatically transfer the code afte...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com