链接填充页面的其余部分 [英] Link fills the rest of the page
本文介绍了链接填充页面的其余部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个链接,当我把它放在代码中时,链接填满整个宽度
这里是代码:
html:
I have a link that when I put it in the code, the link fills the whole width
here is code:
html:
<a href="index.html"><p>← Go back home</p></a>
css:
css:
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
我有什么尝试过:
我已经尝试更改一些变量,如边距填充边框轮廓等。但没有任何工作!请帮助
What I have tried:
I have tried changing some of the variables like margin padding border outline, etc. But nothing has worked! Please help
推荐答案
将其更改为:
< a href =index.html>&#8592;回到家< / a>
Change it to:
<a href="index.html">← Go back home</a>
这篇关于链接填充页面的其余部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文