Home > Web Front-end > HTML Tutorial > Can anyone tell me where I went wrong_html/css_WEB-ITnose

Can anyone tell me where I went wrong_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:23:16
Original
1018 people have browsed it

I just made a layout. I don’t know why the link in the main menu cannot be selected, even if the mouse moves up, it does not turn into a hand shape

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>    <style type="text/css">        #main ul li a , #main ul li ul li a        {             text-decoration:none;             float:left;             width:250px;             height:57px;             text-align:center;             border:1px solid #fff;             background-color:Gray;             color:White;            }                          #main ul li       {           float:left;           width:250px;           height:58px;           padding:0px;           margin:0px;           list-style:none;           }               #main ul li ul li        {             float:inherit;             list-style:none;             width:250px;             height:58px;                        }         #main ul li ul         {             position:relative;             padding:0px;             margin:0px;             width:250px;             height:58px;             }          #main ul          {              width:500px;              height:58px;              }        #main        {            height: 251px;            width: 706px;        }        </style></head><body style="height: 273px">        <div id="main" >            <ul>                    <li>                        <a href="#">1</a>                        <ul>                            <li><a href="#" >11</a></li>                            <li><a href="#">12</a></li>                        </ul>                    </li>                                            <li>                        <a href="#">2</a>                        <ul>                            <li><a href="#">21</a></li>                            <li><a href="#">22</a></li>                                                    </ul>                                                                </li>            </ul>        </div></body></html>
Copy after login


Reply to the discussion (solved Scheme)

by & lt; a & gt; lower & lt; ul & gt; cover

#Main ul li ul
{
/*posity: related
Covered by lower

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template