我可以title在锚标记内更改属性的设计,即使默认标记与更改的标记一起出现.
我想知道是否可以删除默认title工具提示,如下所示?
到目前为止,这是我的代码:
<a title="Edit"><img alt="" src="dist/img/edit.png" ></a>
a:hover {
color: red;
position: relative;
}
a[title]:hover:after {
content: attr(title);
padding: 2px 4px;
color: #333;
position: absolute;
left: 0;
top: 100%;
white-space: nowrap;
z-index: 20px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0px 0px 4px #222;
-webkit-box-shadow: 0px 0px 4px #222;
box-shadow: 0px 0px 4px #222;
background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
background-image: -webkit-gradient(linear, left top, left bottom,
color-stop(0, #eeeeee), color-stop(1, #cccccc));
background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
background-image: -moz-linear-gradient(top, #eeeeee, …Run Code Online (Sandbox Code Playgroud) 我在我的Web应用程序中使用Spring MVC 4.0.这里我使用锚标记来调用控制器.
<a href="testDetails?id=3">Details</a> //i.e a GET request
Run Code Online (Sandbox Code Playgroud)
现在我不想id=3在我的地址栏中显示这个,这可以通过使用POST请求来实现.
有没有其他方法可以做到这一点,如果有可能通过使用一些加密格式,那么你能提供给我任何一个例子吗?
我正在使用简单的datepicker,但问题是上一个和下一个按钮图像没有显示.
https://jqueryui.com/datepicker/
如果链接像下面那样工作正常.
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
Run Code Online (Sandbox Code Playgroud)
但是,一旦我正在处理jquery-ui.css到我的本地图像没有显示,就像吼叫一样.
<link rel="stylesheet" href="css/datatable/jquery-ui.css" />
Run Code Online (Sandbox Code Playgroud)
在浏览器控制台中,我收到了如下的错误.
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_flat_75_ffffff_40x100.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_highlight-soft_75_cccccc_1x100.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-icons_222222_256x240.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-bg_glass_75_dadada_1x400.png"
"NetworkError: 404 Not Found - http://localhost:8080/TestProject/css/datatable/images/ui-icons_454545_256x240.png"
Run Code Online (Sandbox Code Playgroud)
错误很简单,没有找到这些图像.但我不知道如何解决这个问题,同时保持jquery-ui.css在本地.
提前致谢.