我想在引导选项卡中添加一个关闭图标,然后我可以通过单击图标关闭选项卡.
我尝试下面,但"X"显示不与标题标题在同一行.
.close {
font-size: 20px;
font-weight: bold;
line-height: 18px;
color: #000000;
text-shadow: 0 1px 0 #ffffff;
opacity: 0.2;
filter: alpha(opacity=20);
text-decoration: none;
display:inline;
}
.close:hover {
display:inline;
color: #000000;
text-decoration: none;
opacity: 0.4;
filter: alpha(opacity=40);
cursor: pointer;
}
<a id="user-list-tab-li" style="display:inline;" href="#user-list-tab-pane">The tab</a>
<span class="close">×</span>
Run Code Online (Sandbox Code Playgroud) 我正在开发一个必须在1.5运行时环境中部署的项目.那么有谁知道如何使用Intellij IDEA将项目目标构建为1.6乘1.6 JDK,我的开发是Mac OSX 10.8和JDK 1.6
我想在我的项目中使用zeroMQ,然后运行如下的configure来将libaray构建到我的主文件夹中
./configure --enable-static --disable-shared --prefix=/home/xx/out
Run Code Online (Sandbox Code Playgroud)
然后我链接我的项目
gcc -o myproject x.c y.c /home/xx/out/libzmq.a
Run Code Online (Sandbox Code Playgroud)
但仍有很多链接错误,如下所示:
../zmq/lib/libzmq.a(libzmq_la-ip.o): In function zmq::resolve_ip_interface(sockaddr_storage*, unsigned int*, char const*)':
/home/sureone/share/zeromq-2.2.0/src/ip.cpp:221: undefined reference to std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/home/sureone/share/zeromq-2.2.0/src/ip.cpp:222: undefined reference to std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
../zmq/lib/libzmq.a(libzmq_la-ip.o): In function zmq::resolve_ip_hostname(sockaddr_storage*, unsigned int*, char const*)':
/home/sureone/share/zeromq-2.2.0/src/ip.cpp:314: undefined reference to std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, uns
Run Code Online (Sandbox Code Playgroud)
...........
我有一个包含按钮的表单,单击按钮时会提交表单,以及如何防止这种情况。例如,我只想在单击按钮时显示“警报”。并将按钮放在表单之外对我来说不是一个选择。
顺便说一句,我使用引导框架。
<form class="form-inline" role="form" id="form-area">
<input type="hidden" name="key" value="dept-area">
<div class="form-group">
<input type="text" class="form-control" name="data" placeholder="">
</div>
<button class="btn btn-default" id="btn-area">test</button>
</form>
Run Code Online (Sandbox Code Playgroud) 我有一张表"table1"之类的
NAME COL1 COL2 COL3 COL4
A 1 2 3 4
Run Code Online (Sandbox Code Playgroud)
我想通过过滤表
"SELECT * FROM table1 where (COL1=1 OR COL2=1 OR COL3=1 OR COL4=1)"
Run Code Online (Sandbox Code Playgroud)
我希望结果是
NAME COL_NAME
A COL1
Run Code Online (Sandbox Code Playgroud)
这可能是SQL语句吗?
在"applicationContext-base.xml"中我添加如下:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
>
.....
<!-- transaction support-->
<!-- PlatformTransactionMnager -->
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>
<!-- enable transaction annotation support -->
<tx:annotation-driven transaction-manager="txManager" />
Run Code Online (Sandbox Code Playgroud)
我想在"控制器"中为一个函数设置一个事务
@Controller
@RequestMapping("/ywdata")
public class YwController extends BaseController{
....
@Transactional(timeout=1)
private void submitNewSXSQ(Map map, HttpServletRequest request, HttpServletResponse response) throws Exception {
...//STEP1 :do some db insert and update STEP1
if(true)
throw new Exception("test …
Run Code Online (Sandbox Code Playgroud) Spring MVC中"ModelAndView.addObject"和"Session.setAttribute"之间有什么区别?
似乎他们都可以共享Object并在JSP中使用.