Html 谁能告诉我第二个“为什么?”;“这里”;链接不';不行?
在页面的同一行上有两个“here”链接,第二个链接不起作用 我的css可以找到。我不确定为什么它与“header”div有任何不同,因为header div中的链接即使在同一行上也可以工作 具体代码如下所示 CSSHtml 谁能告诉我第二个“为什么?”;“这里”;链接不';不行?,html,css,hyperlink,Html,Css,Hyperlink,在页面的同一行上有两个“here”链接,第二个链接不起作用 我的css可以找到。我不确定为什么它与“header”div有任何不同,因为header div中的链接即使在同一行上也可以工作 具体代码如下所示 CSS #body { line-height:1.5em; width:700px; margin:auto; overflow-x: hidden; padding:12.5px; color:#4e443c; fo
#body {
line-height:1.5em;
width:700px;
margin:auto;
overflow-x: hidden;
padding:12.5px;
color:#4e443c;
font-size:16px;
font-family:"Courier";
text-align:left;
}
HTML
<div id="body">
<h3>Logger</h3>
Logger is a java library that allows you to log to a log file easily. <a href="Logger.jar">Download</a> <span> the .jar file and then add it to your build path.
For Eclipse instructions see <a href="http://stackoverflow.com/a/2727723">here</a>.
For command-line instructions see <a href="http://stackoverflow.com/a/2096298">here</a>.
Then add the code <i>Logger log = new Logger();</i> to your class to initialize the logger and then you can use either <i>log.log(String);</i> or <i>log.logAndPrint(String);</i> to print to the log.
The <i>logAndPrint</i> method prints to the console as well as the log file while the <i>log</i> method only prints to the file.
Below is an example driver program. <br>
<script src="http://gist-it.appspot.com/https://github.com/dummycode/Logger/blob/master/Example.java?footer=0">
</script>
<a href="/p">Back</a>
</div>
记录器
Logger是一个java库,允许您轻松地登录到日志文件。.jar文件,然后将其添加到构建路径中。
有关Eclipse说明,请参阅。
有关命令行说明,请参阅。
然后添加代码Logger log=new Logger();到您的类初始化记录器,然后您可以使用log.log(字符串);或log.logAndPrint(字符串);打印到日志中。
logAndPrint方法将打印到控制台以及日志文件,而log方法仅打印到文件。
下面是一个示例驱动程序
我尝试过不同的方法,例如display:inline block
或使用span
标记,但大多数方法都会弄乱我的页面格式
有人能帮我吗?因为
social
id div在那个链接上。
你需要改变在twitter上的位置
将以下样式添加到social id div:
#social {
z-index: -1;
}
请检查您的CSS代码
#social {
position:fixed;
width:70px;
height:130px;
left:80%;
padding-left:100px;
margin: 0px auto;
}
减少
左侧填充的填充:100px编码>并使其左:80%代码>,这对您很好不要为此使用固定位置。试试这个
#主体{
线高:1.5em;
宽度:700px;
保证金:自动;
溢出x:隐藏;
填充:12.5px;
颜色:#4e443c;
字体大小:16px;
字体系列:“信使”;
文本对齐:左对齐;
浮动:左;
}
#社会的{
宽度:70px;
高度:130像素;
保证金:0px自动;
浮动:左;
}
请在你的问题下面检查我的答案。这很有效,该死,我以为我已经把所有的东西都检查过了。我不知道这是一个完全不同领域的问题。