导航栏未显示所有标题

我的html页面有问题。 问题是在下拉列表中我只能看到标题的第一个单词。另外,导航栏不在页面中间,尽管我尝试了不同 样式我仍然无法在中间找到它。这是我的CSS代码 llllllllllllllllllllllllllllllllllllllllllll

package main

import "fmt"

type Car struct{
    Code string
    Brand string
    Type string
    Price int 
    Supply int
}

var Stock []Car

func init()  {
    Stock = []Car{
        Car{
            Code:"TOY13EMTAV",Brand:"Toyota Avanza",Type:"1.3 E M/T",Price:191100000,Supply:2,},Car{
            Code:"TOY15GMTAV",Type:"1.5 G M/T",Price:221250000,Supply:3,Car{
            Code:"TOY15GCVTYAR",Brand:"Toyota Yaris",Type:"G CVT",Price:257650000,Supply:5,}
}
a2969318 回答:导航栏未显示所有标题

尝试一下

body {
  background-image: url("bg.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #78706e;
  height: 100%;
  min-height: 100%;
  font-size: 16pt;
  font-family: Times;
  min-height: 100%;
  color: black;
  z-index: 1;
  /* position:absolute; */  /* Remove this line */
}

nav ul li:hover ul li {
  display: block;
  font-size: 14px;      /* update 16px to 14px */
  white-space: nowrap;
}
本文链接:https://www.f2er.com/3132056.html

大家都在问