我正在使用twitter-bootstrap和popovers.
我面临以下问题:当用户点击在页面底部打开弹出窗口的链接时,它会首先滚动到页面顶部.这要求用户向下滚动以查看弹出窗口.在twitter-bootstrap网站上的演示中,我没有看到这一点,并且想知道我是否可以在这个问题上得到帮助.
<div class="span1" style=" width: 60px; ">
    <a href="#" class="example2" rel="popover" data-html="true" data-placement="left" data-content="<a href = '/social/2lPdXV1KO4s/Bhangra indian Jingle Bells balle balle Merry Christmas'><img src='http://i4.ytimg.com/vi/2lPdXV1KO4s/hqdefault.jpg'></a>" data-original-title="Bhangra indian Jingle Bells balle balle Merry Christmas">
        <img src="http://graph.facebook.com/1236870349/picture">
    </a>
    <div class="popover fade left in" style="top: 831px; left: 805.61669921875px; display: block;">
    <div class="arrow"></div>
    <div class="popover-inner">
        <h3 class="popover-title">Bhangra indian Jingle Bells balle balle Merry Christmas</h3>
        <div class="popover-content">
            <p><a href="/social/2lPdXV1KO4s/Bhangra indian Jingle Bells balle balle Merry Christmas"><img src="http://i4.ytimg.com/vi/2lPdXV1KO4s/hqdefault.jpg"></a></p>
        </div>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud) 首先,我不完全确定它是否适合stackoverflow,或者应该放在程序员或超级用户中.如果我发布到错误的页面,我很抱歉.
对于这个问题:
例如,在Aptana Studio中,-tags 的src-attribute 有一个非常好的功能<img>.在src-attribute中键入时,autocomplete-context菜单中会显示目录列表,因此您可以直接选择图像文件,并将路径插入到属性中.
这就是我的意思:

有没有办法,插件或类似的东西,所以我可以将这种行为变成Sublime Text 2?最好是为HTML-Markup和CSS背景图像工作?
编辑:同时我在sublime userecho上发布了这个,也许会有一些东西会出现这个问题.我会更新这个问题.
当我悬停已经有自己的转换的外部div框(父级)时,我想产生一个会触发我的按钮转换的效果.这可以用css完成还是需要一些javascript?
我的例子:
.box {
	height: 300px;
	width: 300px;
	background: #eeeeee;	
	float: left;
	margin: 50px;
	-webkit-transition: All 0.5s ease;
	-moz-transition: All 0.5s ease;
	-o-transition: All 0.5s ease;
	-ms-transition: All 0.5s ease;
	transition: All 0.5s ease;
}
.box:hover {
	height: 350px;
}
#box_pic1 {
	background: url(http://nicholsd.com/_Media/image-15_med.png);
	background-repeat: no-repeat;
	background-position: relative;
	height: 196px;
	width: 262px;
	margin: 0 auto;
	margin-top: 20px;
}
.btn_ani {
	font-size: 13px;
	text-align: center;
	color: #ffffff;
	opacity: 0.5;
	width: 150px;
	background: #99745c;
	border:1px solid #99745c;
	line-height: 35px;
	transition: opacity 0.5s; …Run Code Online (Sandbox Code Playgroud)我有一个网页的一部分(包含Bootstrap CSS),其中包含一个<div>ID为“ drop-zone”的ID,稍后我将在javascript中使用该ID来实现拖放功能:
<div id="drop_zone">
    <p style="color: darkgray">Drop</p>
    <p style="color: black">test.txt</p>
    <p style="color: darkgray"> here</p>
</div>
Run Code Online (Sandbox Code Playgroud)
我<p>在那里有s,因为我想改变这一行的样式,但是如果我使用上面的代码,或者将<p>s 换成<div>s,则代码将在多行上呈现,如下所示:
下降
test.txt
这里
当我真的希望它看起来像:
将test.txt放在此处
我敢肯定这是一个简单的解决方法,但是这里有什么想法吗?
css ×3
html ×3
aptana ×1
autocomplete ×1
css3 ×1
jquery ×1
layout ×1
popover ×1
sublimetext ×1