小编Mau*_*oTL的帖子

如何获得<img>标签的焦点

我在html页面中有以下代码:

<img id="image_java"  alt="image_not" src="images/java-icon.png">
Run Code Online (Sandbox Code Playgroud)

在css页面中的代码如下:

#image_java: focus {
outline: 2px solid blue;
}
Run Code Online (Sandbox Code Playgroud)

我也尝试过:

img:focus{
outline: 2px solid blue;
Run Code Online (Sandbox Code Playgroud)

}

但是它们似乎不起作用,它们假设在焦点时在图像周围显示蓝色边缘.有谁知道这是怎么做到的吗?谢谢!!!

html css

11
推荐指数
2
解决办法
2万
查看次数

为什么Eclipse - Tomcat 7在控制台中显示红色的所有文本

我正在使用Eclipse Kepler和Tomcat 7,我只是在测试一个简单的JSP页面(test.jsp).它在浏览器中运行良好,但控制台中的所有文本都以红色显示.

我已经检查了Window/Preferences /(Run/Debug)属性和所有接缝都没问题.

控制台中的文本如下:

Jan 07, 2015 3:31:07 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance 
in production environments was not found on the java.library.path: 
C:\Java\jdk1.8.0_05\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;...etc
Jan 07, 2015 3:31:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 07, 2015 3:31:08 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 07, 2015 3:31:08 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1676 ms
Jan 07, 2015 3:31:08 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service …
Run Code Online (Sandbox Code Playgroud)

eclipse tomcat7

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

标签 统计

css ×1

eclipse ×1

html ×1

tomcat7 ×1