小编dre*_*mug的帖子

如何设置自动完成下拉列表的样式

我正在寻找一个纯HTML/CSS解决方案.到目前为止我发现的所有内容都涉及插件(通常是jquery).

我希望能够设置"自动填充建议下拉框"的样式(我不知道它的名称是什么,所以我试图描述它).

比如我有

CSS

input[type=search] {
        background: none;
        font-weight: bold;
        border-color: #2e2e2e;
        border-style: solid;
        border-width: 2px 2px 2px 2px;
        outline: none;
        padding:10px 20px 10px 20px;
        width: 250px;
}
Run Code Online (Sandbox Code Playgroud)

"自动完成下拉框"是传统的简单白框,带有自己的默认字体.我不知道我的CSS中的目标是什么来更新它.

HTML

<div id="search">
        <form method="GET" action="events">
                <div id="search_field_container">
                        <input name="city" id="search_input" type="search" placeholder="City, ST">
                </div>
                <input type="submit" value="Find">
        </form>
</div>
Run Code Online (Sandbox Code Playgroud)

html css html5 css3

13
推荐指数
1
解决办法
3万
查看次数

用于 URL 的 bufferedReader 抛出 IOException

我让我的代码连接到我的计算机 php 文件并在 java 程序中输出正确的文本。当我试图将它添加到我的 android 项目以显示高分时,它总是抛出 IOException,我不知道为什么。这是我的代码。任何帮助,将不胜感激。

包 com.enophz.spacetrash;

导入 java.io.BufferedReader;
导入 java.io.IOException;
导入 java.io.InputStreamReader;
导入 java.net.MalformedURLException;
导入 java.net.URL;
导入 java.net.URLConnection;

导入 android.app.Activity;
导入 android.content.Intent;
导入 android.os.Bundle;
导入 android.view.View;
导入 android.widget.Button;
导入 android.widget.TextView;

公共类分数扩展活动{

 //私有TextView HscoreText;

 /** 在第一次创建活动时调用。*/
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.scores);

        Button next = (Button) findViewById(R.id.Button01);
        next.setOnClickListener(new View.OnClickListener() {
            公共无效onClick(查看视图){
                Intent myIntent = new Intent(view.getContext(), Menu.class);
                开始活动(我的意图);
            }

        });

        TextView HscoreText = (TextView) findViewById(R.id.text);

        尝试
        {
         URL page = new URL("http://192.168.1.108/score.php");
         URLConnection pageconnection = page.openConnection(); …

android

7
推荐指数
1
解决办法
3777
查看次数

标签 统计

android ×1

css ×1

css3 ×1

html ×1

html5 ×1