1. 程式人生 > >登錄框之固定圖標到登錄框末尾

登錄框之固定圖標到登錄框末尾

div 堆疊 ati lan tle put pre light top

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <div style="height: 35px;width: 400px;position: relative;">
        <input type="text" style="height: 35px;width: 360px;padding-right: 60px" />
        <span style="position:absolute;right:0;top:10px;background-image: url(堆疊小圖標.png);height: 16px;width: 16px;display: inline-block;"></span>
    </div>
</body>
</html>

登錄框之固定圖標到登錄框末尾