如何对齐列表框项目?

时间:2016-01-13 18:06:47

标签: c# css asp.net listbox alignment

这是我的asp.net代码

// Log the panic under windows to the log file
//
// Code from minix, via
//
// http://play.golang.org/p/kLtct7lSUg

//+build windows

package main

import (
    "log"
    "os"
    "syscall"
)

var (
    kernel32         = syscall.MustLoadDLL("kernel32.dll")
    procSetStdHandle = kernel32.MustFindProc("SetStdHandle")
)

func setStdHandle(stdhandle int32, handle syscall.Handle) error {
    r0, _, e1 := syscall.Syscall(procSetStdHandle.Addr(), 2, uintptr(stdhandle), uintptr(handle), 0)
    if r0 == 0 {
        if e1 != 0 {
            return error(e1)
        }
        return syscall.EINVAL
    }
    return nil
}

// redirectStderr to the file passed in
func redirectStderr(f *os.File) {
    err := setStdHandle(syscall.STD_ERROR_HANDLE, syscall.Handle(f.Fd()))
    if err != nil {
        log.Fatalf("Failed to redirect stderr to file: %v", err)
    }
    // SetStdHandle does not affect prior references to stderr
    os.Stderr = f
}

和css style

 <div class="output">
            <div class="listbox">

     <asp:ListBox ID="ListBox1" runat="server" Height="304px" Width="240px" ></asp:ListBox>

            <asp:Label ID="Label1" runat="server" Text="."></asp:Label>   
             <asp:ListBox ID="ListBox3" runat="server"  Height="100px" Width="240px"></asp:ListBox>
           </div>      
             </div>

我不知道为什么但是在页面上检查它是留下但是谷歌Chrome总是对齐。我已经删除了chrome的历史并检查我的代码但是找不到解决方案

enter image description here

0 个答案:

没有答案